Skip to content

Commit 413fdcb

Browse files
committed
chore(linting): update eslint, plugins, and configs
1 parent 3c7052a commit 413fdcb

File tree

4 files changed

+768
-563
lines changed

4 files changed

+768
-563
lines changed

.eslintrc.json

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"plugins": [
4-
"svelte3",
5-
"@typescript-eslint"
6-
],
3+
"plugins": ["vitest", "@typescript-eslint"],
4+
"parserOptions": {
5+
"ecmaVersion": 2019,
6+
"sourceType": "module",
7+
"extraFileExtensions": [".svelte"]
8+
},
79
"extends": [
810
"eslint:recommended",
911
"plugin:import/recommended",
12+
"plugin:svelte/recommended",
1013
"plugin:@typescript-eslint/recommended"
1114
],
1215
"env": {
@@ -15,39 +18,24 @@
1518
},
1619
"overrides": [
1720
{
18-
"files": [
19-
"**/*.svelte"
20-
],
21-
"processor": "svelte3/svelte3",
21+
"files": ["*.svelte"],
22+
"parser": "svelte-eslint-parser",
2223
"rules": {
2324
"no-undef": "off"
25+
},
26+
"parserOptions": {
27+
"parser": "@typescript-eslint/parser"
2428
}
2529
}
2630
],
27-
"parserOptions": {
28-
"ecmaVersion": 2019,
29-
"sourceType": "module"
30-
},
3131
"rules": {
3232
"arrow-parens": 0,
33-
"curly": [
34-
2,
35-
"multi-line"
36-
],
37-
"quotes": [
38-
2,
39-
"single",
40-
"avoid-escape"
41-
],
42-
"semi": [
43-
2,
44-
"always"
45-
],
33+
"curly": [2, "multi-line"],
34+
"quotes": [2, "single", "avoid-escape"],
35+
"semi": [2, "always"],
4636
"strict": 0,
4737
"no-use-before-define": 0,
48-
"import/no-unresolved": 0
49-
},
50-
"settings": {
51-
"svelte3/typescript": true
38+
"import/no-unresolved": 0,
39+
"no-inner-declarations": 0
5240
}
5341
}

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,18 @@
7575
"@sveltejs/vite-plugin-svelte": "^3.0.1",
7676
"@testing-library/jest-dom": "^6.1.4",
7777
"@testing-library/svelte": "^4.0.5",
78-
"@typescript-eslint/eslint-plugin": "^5.30.6",
79-
"@typescript-eslint/parser": "^5.30.6",
80-
"@vitest/coverage-v8": "^1.2.1",
78+
"@tsconfig/svelte": "^5.0.2",
79+
"@typescript-eslint/eslint-plugin": "^6.19.1",
80+
"@typescript-eslint/parser": "^6.19.1",
81+
"@vitest/coverage-v8": "^1.2.2",
8182
"chart.js": "^4.1.2",
8283
"commitizen": "^4.2.4",
8384
"cz-conventional-changelog": "^3.3.0",
8485
"del-cli": "^5.0.0",
85-
"eslint": "^8.18.0",
86-
"eslint-plugin-import": "^2.26.0",
87-
"eslint-plugin-svelte3": "^4.0.0",
86+
"eslint": "^8.56.0",
87+
"eslint-plugin-import": "^2.29.1",
88+
"eslint-plugin-svelte": "^2.35.1",
89+
"eslint-plugin-vitest": "^0.3.20",
8890
"jsdom": "^21.0.0",
8991
"nano-staged": "^0.8.0",
9092
"prettier": "^2.7.1",
@@ -97,9 +99,10 @@
9799
"size-limit": "^8.0.0",
98100
"standard-version": "^9.5.0",
99101
"storybook": "^7.6.10",
100-
"svelte": "^4.0.0",
101-
"svelte-loader": "^3.1.5",
102-
"svelte-preprocess": "^5.0.0",
102+
"svelte": "^4.2.9",
103+
"svelte-eslint-parser": "^0.33.1",
104+
"svelte-loader": "^3.1.9",
105+
"svelte-preprocess": "^5.1.3",
103106
"typescript": "^4.9.4",
104107
"vite": "^5.0.12",
105108
"vitest": "^1.2.1",

0 commit comments

Comments
 (0)