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 413fdcb
Show file tree
Hide file tree
Showing 4 changed files with 768 additions and 563 deletions.
46 changes: 17 additions & 29 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"svelte3",
"@typescript-eslint"
],
"plugins": ["vitest", "@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"extraFileExtensions": [".svelte"]
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:svelte/recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
Expand All @@ -15,39 +18,24 @@
},
"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": [
2,
"multi-line"
],
"quotes": [
2,
"single",
"avoid-escape"
],
"semi": [
2,
"always"
],
"curly": [2, "multi-line"],
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"strict": 0,
"no-use-before-define": 0,
"import/no-unresolved": 0
},
"settings": {
"svelte3/typescript": true
"import/no-unresolved": 0,
"no-inner-declarations": 0
}
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,18 @@
"@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-svelte": "^2.35.1",
"eslint-plugin-vitest": "^0.3.20",
"jsdom": "^21.0.0",
"nano-staged": "^0.8.0",
"prettier": "^2.7.1",
Expand All @@ -97,9 +99,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 413fdcb

Please sign in to comment.