-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
37 lines (37 loc) · 1.22 KB
/
.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
35
36
37
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["airbnb-base"],
"parserOptions": {
"ecmaVersion": 12
},
"plugins": ["prettier"],
"rules": {
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"indent": ["error", 4],
"quotes": ["error", "double"],
"comma-dangle": ["error", "never"],
"semi": ["error", "never"],
"no-underscore-dangle": ["error", { "allow": [] }],
"no-param-reassign": ["error", { "props": false }],
"no-console": ["error", { "allow": ["warn", "log", "error", "debug"] }],
"operator-linebreak": ["error", "after"],
"new-cap": ["warn", { "newIsCap": false }],
"max-len": ["error", { "code": 230 }],
"function-paren-newline": ["warn", { "minItems": 4 }],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"class-methods-use-this": "off",
"consistent-return": "warn",
"func-names": ["error", "never"],
"import/extensions": ["error", "ignorePackages", { "js": "always", "json": "always" }]
}
}