-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
48 lines (48 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
38
39
40
41
42
43
44
45
46
47
48
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react-hooks", "prettier"],
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"jest": true,
"es6": true,
"node": true
},
"globals": {
"graphql": true,
"createSpyObj": true,
"React": true
},
"rules": {
"react/require-default-props": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/state-in-constructor": 0,
"react/static-property-placement": 0,
"jsx-a11y/accessible-emoji": 0,
"react/jsx-wrap-multilines": [
"error",
{
"declaration": false
}
],
"no-unused-expressions": [
2,
{
"allowShortCircuit": true,
"allowTaggedTemplates": true
}
],
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}