-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
38 lines (38 loc) · 995 Bytes
/
.eslintrc
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
{
"extends": [
"airbnb",
"airbnb/hooks",
"eslint-config-prettier",
"prettier/react"
],
"plugins": ["react"],
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"rules": {
"curly": ["error"],
"max-depth": ["warn", 4],
"id-length": ["warn", { "exceptions": ["i", "j"], "min": 2 }],
"no-lonely-if": ["error"],
"no-plusplus": ["error", {"allowForLoopAfterthoughts": true}],
"no-restricted-syntax": "off",
"class-methods-use-this": "off",
"jsx-a11y/href-no-hash": ["off"],
"jsx-a11y/anchor-is-valid": ["off"],
"jsx-a11y/label-has-associated-control": [ "error", {
"assert": "either"
}],
"react/state-in-constructor": ["off"],
"react/jsx-props-no-spreading": ["off"],
"react/static-property-placement": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}