Skip to content

Commit

Permalink
chore(linting): update eslint, plugins, and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dysfunc committed Jan 29, 2024
1 parent 3c7052a commit 7bd3c7c
Show file tree
Hide file tree
Showing 4 changed files with 681 additions and 551 deletions.
35 changes: 17 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"extraFileExtensions": [".svelte"]
},
"plugins": [
"svelte3",
"vitest",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"node": true
},
"overrides": [
{
"files": [
"**/*.svelte"
],
"processor": "svelte3/svelte3",
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"rules": {
"no-undef": "off"
},
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"rules": {
"arrow-parens": 0,
"curly": [
Expand All @@ -45,9 +46,7 @@
],
"strict": 0,
"no-use-before-define": 0,
"import/no-unresolved": 0
},
"settings": {
"svelte3/typescript": true
"import/no-unresolved": 0,
"no-inner-declarations": 0
}
}
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,17 @@
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/svelte": "^4.0.5",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"@vitest/coverage-v8": "^1.2.1",
"@tsconfig/svelte": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vitest/coverage-v8": "^1.2.2",
"chart.js": "^4.1.2",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^5.0.0",
"eslint": "^8.18.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-vitest": "^0.3.20",
"jsdom": "^21.0.0",
"nano-staged": "^0.8.0",
"prettier": "^2.7.1",
Expand All @@ -97,9 +98,10 @@
"size-limit": "^8.0.0",
"standard-version": "^9.5.0",
"storybook": "^7.6.10",
"svelte": "^4.0.0",
"svelte-loader": "^3.1.5",
"svelte-preprocess": "^5.0.0",
"svelte": "^4.2.9",
"svelte-eslint-parser": "^0.33.1",
"svelte-loader": "^3.1.9",
"svelte-preprocess": "^5.1.3",
"typescript": "^4.9.4",
"vite": "^5.0.12",
"vitest": "^1.2.1",
Expand Down
Loading

0 comments on commit 7bd3c7c

Please sign in to comment.