-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
32 lines (32 loc) · 947 Bytes
/
.eslintrc.json
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
{
"parserOptions": {
"ecmaVersion": 9
},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"jquery": true
},
"extends": "airbnb-base",
"plugins": [ "import", "html" ],
"rules": {
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
// "no-var": 0,
"no-console": 0,
"no-plusplus": 0,
"vars-on-top": 0,
"no-underscore-dangle": 0, // var _foo;
"comma-dangle": 0,
"func-names": 0, // setTimeout(function () {}, 0);
"prefer-arrow-callback": 0, // setTimeout(function () {}, 0);
"prefer-template": 0,
"no-nested-ternary": 0,
"max-classes-per-file": 0,
"arrow-parens": ["error", "as-needed"], // a => {}
"no-restricted-syntax": [0, "ForOfStatement"],
"no-param-reassign": ["error", { "props": false }]
}
}