-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
34 lines (33 loc) ยท 991 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
33
34
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 11
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"extends": ["airbnb-base", "prettier"],
"rules": {
"no-console": "warn",
"no-plusplus": "off",
"no-shadow": "off",
"vars-on-top": "off",
"no-underscore-dangle": "off", // var _foo;
"func-names": "off", // setTimeout(function () {}, 0);
"prefer-arrow-callback": "error", // Require using arrow functions for callbacks
"prefer-template": "off",
"no-nested-ternary": "off",
"max-classes-per-file": "off",
"wrap-iife": ["error", "inside"],
"arrow-parens": ["error", "as-needed"], // a => {}
"no-restricted-syntax": [0, "ForOfStatement"], // disallow specified syntax(ex. WithStatement)
"no-param-reassign": ["error", { "props": false }],
"require-await": "error",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
},
"plugins": [
"html"
]
}