Skip to content

Commit

Permalink
A whole lot of formatting stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lyssieth committed Jan 5, 2024
1 parent 2b8a2ac commit 9e837ec
Show file tree
Hide file tree
Showing 24 changed files with 1,301 additions and 301 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
svelte.config.js
vite.config.ts
29 changes: 29 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:svelte/recommended",
"plugin:svelte/prettier",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/strict-type-checked"
],
"parserOptions": {
"project": "tsconfig.json",
"extraFileExtensions": [".svelte"],
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"plugins": ["@typescript-eslint", "prettier", "svelte"]
}
6 changes: 6 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
branches:
- main
paths:
- "src/**"
- "public/**"
- "pnpm-lock.yaml"
- "package.json"
- "index.html"
workflow_dispatch:

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pnpm-lock.yaml
node_modules/
dist/
20 changes: 20 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"plugins": ["prettier-plugin-svelte"],
"singleQuote": false,
"trailingComma": "none",
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf",
"semi": true,
"svelteSortOrder": "scripts-options-markup-styles",
"svelteStrictMode": true,
"svelteIndentScriptAndStyle": true,
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lint:
pnpm eslint .
pnpm prettier -c .
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ PoC but usable. [Demo hosted by GitHub pages](https://lyssieth.github.io/worldbu

## Future Plans

- [ ] Creation/modification/saving of templates
- [ ] Import/export of templates (json)
- [ ] Other export formats than markdown (html, pdf, etc.)
[see the todo](todo.md)
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tsconfig/svelte": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-svelte": "^2.35.1",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"sass": "^1.69.7",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.10"
"vite": "^5.0.11"
}
}
Loading

0 comments on commit 9e837ec

Please sign in to comment.