-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
37 lines (37 loc) · 1.05 KB
/
.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
{
"extends": ["@tillersystems/eslint-config/react", "plugin:jsx-a11y/recommended"],
"globals": {
"__DEVELOPMENT__": true,
"mount": true,
"shallow": true,
"mountWithTheme": true,
"shallowWithTheme": true,
"render": true
},
"env": {
"browser": true
},
"plugins": ["jsx-a11y", "react-hooks"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"no-underscore-dangle": ["error", { "allow": ["__DEVELOPMENT__"] }],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"import/no-cycle": 0,
"import/no-unresolved": 2,
"import/order": 0,
"import/prefer-default-export": 0,
"react/prefer-stateless-function": 0,
"react/no-did-update-set-state": 0,
"react/no-access-state-in-setstate": 0,
"react/no-array-index-key": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}