-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
47 lines (47 loc) · 1.14 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
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"import/no-anonymous-default-export": 0,
"react/prop-types": [2, { "ignore": ["children"] }],
"react/boolean-prop-naming": ["error", { "propTypeNames": ["bool", "mutuallyExclusiveTrueProps"], "rule": "^(is|has|should)[A-Z]([A-Za-z0-9]?)+" }]
},
"plugins": [
"react"
],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"linkComponents": [
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
"Hyperlink",
{"name": "Link", "linkAttribute": "to"}
]
},
"overrides": [
{
"files": [
"**/*.test.js"
],
"env": {
"jest": true
}
}
]
}