Skip to content

Commit

Permalink
Start migrating to Svelte 5
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslh committed Oct 13, 2024
1 parent 484deae commit e7a8c47
Show file tree
Hide file tree
Showing 24 changed files with 1,418 additions and 1,241 deletions.
73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

76 changes: 76 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"env": { "browser": true, "es2024": true, "node": true },
"extends":
[
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"plugin:svelte/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
],
"ignorePatterns": ["*.cjs"],
"overrides":
[
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": { "parser": "@typescript-eslint/parser" },
},
],
"parser": "@typescript-eslint/parser",
"parserOptions":
{ "ecmaVersion": 2019, "requireConfigFile": false, "sourceType": "module" },
"plugins": ["@typescript-eslint", "unicorn"],
"rules": {
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-shadow": 2,
"@typescript-eslint/no-unused-vars": [1, { "argsIgnorePattern": "^_" }],
"@typescript-eslint/quotes": 0,
"brace-style": [1, "1tbs"],
"camelcase": 1,
"comma-dangle": [1, "always-multiline"],
"curly": [1, "multi-line"],
"eol-last": 1,
"eqeqeq": [2, "always", { "null": "ignore" }],
"import/extensions": 0,
"import/first": 0,
"import/no-extraneous-dependencies": 0,
"import/no-mutable-exports": 0,
"import/no-unresolved": 0,
"import/order": 0,
"import/prefer-default-export": 0,
"linebreak-style": 0,
"max-len": 0,
"no-console": [1, { "allow": ["warn", "error"] }],
"no-constant-condition": 2,
"no-implicit-coercion": 2,
"no-multiple-empty-lines": 0,
"no-param-reassign": 0,
"no-restricted-syntax": 0,
"no-shadow": 0,
"no-trailing-spaces": [1, { "skipBlankLines": true }],
"no-unused-vars": 1,
"no-var": 2,

# TODO: Enable the svelte version of this rule: https://github.com/sveltejs/eslint-plugin-svelte/pull/806
"prefer-const": 0,

"prefer-destructuring": 0,
"quote-props": [1, "consistent"],
"quotes": 0,
"semi": 1,
"unicorn/explicit-length-check": 0,
"unicorn/filename-case": 0,
"unicorn/no-array-callback-reference": 0,
"unicorn/no-await-expression-member": 0,
"unicorn/no-document-cookie": 0,
"unicorn/no-null": 0,
"unicorn/prefer-add-event-listener": 0,
"unicorn/prefer-dom-node-dataset": 0,
"unicorn/prefer-string-replace-all": 0,
"unicorn/prefer-top-level-await": 0,
"unicorn/prevent-abbreviations": 0,
},
"settings": { "svelte3/typescript": true },
}
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
run: npm ci --force
- name: Lint
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
run: npm ci --force
- name: Build app
run: npm run build
- name: Install Playwright
Expand Down
Loading

0 comments on commit e7a8c47

Please sign in to comment.