-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.28 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
{
"env": {
"es6": true,
"jest/globals": true
},
"extends": ["eslint:recommended", "standard", "plugin:react/recommended"],
"parser": "babel-eslint",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "jest"],
"settings": {
"react": {
"pragma": "React",
"version": "detect",
"flowVersion": "0.59"
}
},
"rules": {
"react/destructuring-assignment": 2,
"react/boolean-prop-naming": [
"error",
{
"rule": "^(is|has)[A-Z]([A-Za-z0-9]?)+"
}
],
"react/jsx-boolean-value": 2,
"react/jsx-pascal-case": 2,
"react/prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"react/jsx-indent": ["error", 2],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"no-async-promise-executor": 0,
"no-misleading-character-class": 0,
"no-useless-catch": 0,
"require-atomic-updates": 0,
"multiline-ternary": "off"
}
}