forked from ymm-tech/gods-pen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·49 lines (49 loc) · 1.21 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
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
sourceType: 'module',
allowImportExportEverywhere: true
},
env: {
browser: true,
node: true
},
extends: [
'plugin:vue/essential',
'standard'
],
plugins: [
'vue'
],
'rules': {
"eol-last": 0,
"vue/no-async-in-computed-properties": 0,
"vue/no-side-effects-in-computed-properties": 0,
"vue/no-side-effects-in-computed-properties": 0,
"vue/valid-v-for": 0,
"no-multiple-empty-lines": 0,
"space-before-function-paren": 0,
"no-return-await": 0,
"vue/no-unused-vars": 0,
"object-curly-spacing": 0,
"no-proto": 0,
"no-new": 0,
"no-extra-boolean-cast": 0,
"no-mixed-operators": 0,
"no-eval": 0,
// allow paren-less arrow functions
'arrow-parens': 0,
'no-useless-escape': 0,
'no-sparse-arrays': 0,
// no-fallthrough
'no-fallthrough': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"eqeqeq": 0, //必须使用全等
"no-extend-native": 0,
"no-multi-spaces": 0,
"indent": 0,
"comma-dangle": [2, "only-multiline"] //定义数组或对象最后多余的逗号
}
}