.eslintrc
1.3 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
{
"env": {
"es6": true,
"node": true,
},
"extends": [
"plugin:vue/recommended",
"eslint:recommended",
"prettier/vue",
"plugin:prettier/recommended"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"parser": "babel-eslint"
},
"rules": {
"vue/require-prop-types": "off",
"vue/require-default-prop": "off",
"vue/max-attributes-per-line": "off",
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"object-shorthand": ["error"],
"eqeqeq": ["error", "smart"],
"no-var": ["error"],
"prefer-const": ["error"],
"prefer-object-spread": "error",
// "lines-between-class-members": ["error", "never"],
// "vue/max-attributes-per-line": ["error", {
// "singleline": 20,
// "multiline": {
// "max": 1,
// "allowFirstLine": false
// }
// }],
// "indent": ["error", 2]
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"indent": 2,
"tabWidth": 2
}
],
}
}