-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
39 lines (37 loc) · 1017 Bytes
/
.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
module.exports = {
parserOptions: {
sourceType: 'module'
},
// https://github.com/sivan/javascript-style-guide/blob/master/es5/README.md
extends: 'airbnb/legacy',
"plugins": [
"import"
],
"rules": {
// 缩进设置为4个空格
"indent": ["error", 4],
"quotes": "off",
"dot-notation": "off",
"no-undef": "off",
"no-bitwise": "off",
"max-len": ["error", 200],
"global-require": "off",
"space-before-function-paren": "off",
"no-underscore-dangle": "off",
"vars-on-top": "off",
"guard-for-in": "off",
"no-restricted-syntax": "off",
"quote-props": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"func-names": "off",
"radix": "off",
"no-extra-bind": "off",
"no-prototype-builtins": "off",
"no-continue": "off",
"no-trailing-spaces": "off"
},
"globals": {
"cc": true
}
}