diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..bdfa6b8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +.env +node_modules +dist \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..72cfb47 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,91 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:import/recommended", + "plugin:import/typescript", + "prettier" + ], + "overrides": [], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "prettier", + "@typescript-eslint", + "import" + ], + "rules": { + "prettier/prettier": ["error"], + "prefer-const": "error", + "eqeqeq": [ + "error", + "always" + ], + "curly": [ + "error" + ], + "require-atomic-updates": [ + "error" + ], + "no-var": [ + "error" + ], + "init-declarations": [ + "error", + "always" + ], + "require-await": [ + "error" + ], + "no-param-reassign": [ + "error" + ], + "import/first": "warn", + "import/exports-last": "warn", + "import/newline-after-import": "warn", + "import/order": [ + "warn", + { + "groups": [ + "builtin", + "external", + "internal", + "parent", + "sibling", + "index", + "object", + "type", + "unknown" + ], + "alphabetize": { + "order": "asc", + "caseInsensitive": true + } + } + ], + "indent": [ + "error", + "tab" + ], + "linebreak-style": [ + "error", + "unix" + ], + "quotes": [ + "warn", + "single" + ], + "semi": [ + "error", + "always" + ] + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index fd3dbb5..488b3a5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ /.pnp .pnp.js .yarn/install-state.gz +pnpm-lock.yaml +package-lock.json # testing /coverage diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..58b1861 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +pnpm exec lint-staged diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3d72e13 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,14 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example +supabase + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..d57413b --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "endOfLine": "lf", + "trailingComma": "none", + "plugins": [""], + "pluginSearchDirs": ["."], + "overrides": [] + } \ No newline at end of file diff --git a/404.html b/404.html index b3a5b3e..40c9925 100644 --- a/404.html +++ b/404.html @@ -1,64 +1,147 @@ -
-