-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
45 lines (45 loc) · 1.31 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
38
39
40
41
42
43
44
45
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"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": ["error", { "newIsCap": false }],
"max-len": ["error", { "code": 230 }],
"function-paren-newline": ["warn", { "minItems": 3 }],
"react/prop-types": [0],
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"react/no-unknown-property": ["error", { "ignore": ["x-tooltip"] }]
}
}