-
Notifications
You must be signed in to change notification settings - Fork 493
Expand file tree
/
Copy path.eslintrc.js
More file actions
81 lines (81 loc) · 1.96 KB
/
Copy path.eslintrc.js
File metadata and controls
81 lines (81 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
module.exports = {
root: true,
env: {
browser: true,
node: true,
commonjs: true,
amd: true,
es2021: true,
mocha: true,
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: "latest",
sourceType: "module",
extraFileExtensions: [".vue"],
},
extends: ["eslint:recommended", "plugin:vue/vue3-essential"],
rules: {
"no-console": "off",
"no-debugger": "off",
"no-useless-escape": "off",
"no-restricted-globals": ["error", "event", "fdescribe"],
"no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"prefer-const": "off",
"vue/multi-word-component-names": "off",
"vue/no-v-html": "off",
"vue/require-default-prop": "off",
},
overrides: [
{
files: ["*.ts"],
plugins: ["@typescript-eslint"],
rules: {
"no-undef": "off",
"no-unused-vars": "off",
"prefer-const": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
},
{
files: ["*.vue"],
rules: {
"no-case-declarations": "off",
"no-dupe-keys": "off",
"no-extra-boolean-cast": "off",
"no-extra-semi": "off",
"no-inner-declarations": "off",
"no-irregular-whitespace": "off",
"no-redeclare": "off",
"no-self-assign": "off",
"no-undef": "off",
"no-unreachable": "off",
"vue/no-mutating-props": "off",
"vue/no-unused-vars": "warn",
"vue/no-use-v-if-with-v-for": "off",
"vue/no-useless-template-attributes": "off",
"vue/valid-attribute-name": "off",
"vue/valid-template-root": "off",
},
},
{
files: ["*.cjs", "*.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
},
},
],
};