-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheslintrc.js
58 lines (58 loc) · 1.5 KB
/
eslintrc.js
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
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/airbnb"],
parserOptions: {
parser: "babel-eslint"
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "warn",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "warn",
semi: ["error", "always"],
"no-trailing-spaces": "error",
"object-curly-spacing": [1, "always"],
"no-dupe-class-members": 1,
"no-iterator": 1,
"one-var": [1, "never"],
"no-nested-ternary": 0,
"no-restricted-syntax": [1, "WithStatement"],
"no-duplicate-imports": 1,
"no-unneeded-ternary": 1,
"no-case-declarations": 1,
"dot-notation": 1,
"no-useless-constructor": 1,
eqeqeq: 1,
"object-shorthand": 1,
"prefer-rest-params": 1,
"no-array-constructor": 1,
"array-callback-return": 0,
"no-param-reassign": 1,
"prefer-arrow-callback": 1,
"no-useless-concat": 1,
indent: 0,
"prefer-template": 1,
"comma-spacing": 0,
"quote-props": 0,
"key-spacing": 0,
"comma-dangle": 0,
"arrow-parens": 0,
"arrow-body-style": 0,
quotes: 0,
"no-extra-bind": 0,
"no-var": 1,
"eol-last": 0,
"no-unused-vars": 0,
"operator-linebreak": 0,
"import/prefer-default-export": 0,
"prefer-destructuring": 0,
"no-else-return": 0,
"vars-on-top": 0,
"no-underscore-dangle": 0,
"no-alert": 0,
"no-lone-blocks": 0,
"no-plusplus": 0,
"max-len": ["error", { code: 150 }]
}
};