-
Notifications
You must be signed in to change notification settings - Fork 457
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (43 loc) · 1.19 KB
/
.eslintrc.js
File metadata and controls
43 lines (43 loc) · 1.19 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
module.exports = {
root: true,
env: {
node: true,
jest: true
},
extends: [
"plugin:vue/recommended",
"eslint:recommended"
],
rules: {
"array-bracket-spacing": ["error", "always"],
"arrow-parens": ["error", "as-needed"],
"indent": ["error", 2],
"keyword-spacing": ["error"],
"max-len": ["error", { "code": 80 }],
"no-console": process.env.NODE_ENV === "production"
? [ "error", { "allow": ["warn"] } ]
: "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-duplicate-imports": ["error", { "includeExports": true }],
"object-curly-spacing": ["error", "always"],
"prefer-const": ["error"],
"semi": ["error", "always"],
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"vue/max-attributes-per-line": ["error", {
"singleline": 20,
"multiline": 1
}],
"vue/v-slot-style": "off",
"vue/valid-v-slot": "off",
"vue/multi-word-component-names": "off",
"vue/no-mutating-props": "off",
"vue/valid-next-tick": "off",
"quotes": ["error", "double", {
"avoidEscape": true
}]
},
parserOptions: {
ecmaVersion: "2022",
sourceType: "module"
}
}