Skip to content

Commit 8145cb2

Browse files
committed
Change linting rules to prevent unnecessary errors
1 parent 36bb3c1 commit 8145cb2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.eslintrc

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"objects": "only-multiline",
1717
"imports": "only-multiline",
1818
"exports": "only-multiline",
19-
"functions": "only-multiline",
19+
"functions": "only-multiline"
2020
}],
2121
"semi": ["error","always"],
2222
"indent": ["error", 2],
@@ -29,7 +29,11 @@
2929
"require-jsdoc": "off",
3030
"space-before-function-paren": [
3131
"error",
32-
{ "anonymous": "always", "named": "never", "asyncArrow": "always" }
32+
{
33+
"anonymous": "always",
34+
"named": "never",
35+
"asyncArrow": "always"
36+
}
3337
]
3438
}
3539
}

web/.eslintrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"extends": [
77
"plugin:vue/essential",
8-
"@vue/standard",
98
"@vue/typescript/recommended",
9+
"eslint:recommended",
1010
"../.eslintrc"
1111
],
1212
"parserOptions": {
@@ -17,6 +17,7 @@
1717
"no-debugger": "warn",
1818
"arrow-parens": "off",
1919
"vue/multi-word-component-names": "off",
20-
"vue/valid-v-slot": "off"
20+
"vue/valid-v-slot": "off",
21+
"@typescript-eslint/no-explicit-any": "off"
2122
}
2223
}

web/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"sourceMap": true,
1313
"baseUrl": ".",
1414
"resolveJsonModule": true,
15+
"noImplicitAny": false,
1516
"plugins": [
1617
{ "transform": "typescript-is/lib/transform-inline/transformer" }
1718
],

0 commit comments

Comments
 (0)