-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
56 lines (56 loc) · 1.63 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
49
50
51
52
53
54
55
56
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["react", "react-hooks", "json"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
}
},
"env": {
"node": true,
"es6": true,
"browser": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"import-extensions": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/jsx-filename-extension": 0,
"no-multiple-empty-lines": ["error", { "max": 1 }],
"object-curly-newline": ["error"],
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"react/jsx-props-no-spreading": 0,
"react/jsx-fragments": 0,
"jsx-a11y/control-has-associated-label": 0,
"react/static-property-placement": 0,
"react/state-in-constructor": 0,
"prefer-object-spread": 0,
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"react/jsx-curly-brace-presence": 0
}
}