forked from resource-watch/resource-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 1.43 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"globals": {
"L": true,
"config": true,
"Transifex": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:cypress/recommended"
],
"overrides": [
{
"files": ["test/**/*"],
"parser": "espree",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"mocha"
]
},
{
"files": [
"**/*.js",
"**/*.jsx"
]
}
],
"rules": {
"import/no-unresolved": "off",
"react/jsx-filename-extension": "warn",
"react/jsx-props-no-spreading": "off",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"jsx-a11y/anchor-is-valid": "off",
"react/button-has-type": "off",
// https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
// ---
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
]
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"@babel",
"react-hooks",
"cypress",
"mocha"
],
"settings": {
"import/resolver": {
"node": {}
}
}
}