-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
85 lines (85 loc) · 1.91 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
79
80
81
82
83
84
85
{
"extends": [
"eslint:recommended",
"fbjs",
"prettier",
"prettier/react"
],
"plugins": [
"react",
"react-hooks",
"sort-imports-es6-autofix",
"prettier",
"import"
],
"env": {
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"classes": true,
"objectLiteralShorthandMethods": true,
"experimentalObjectRestSpread": true,
"arrowFunctions": true,
"modules": true
},
"sourceType": "module"
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"rules": {
"consistent-return": 0,
"semi": 0,
"max-len": [
"error",
{
"code": 120
}
],
"indent": 0,
"import/no-webpack-loader-syntax": "off",
"no-constant-condition": 0,
"no-extra-semi": 0,
"no-unused-vars": 2,
"no-undef": 2,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-uses-vars": 2,
"react/jsx-key": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"no-irregular-whitespace": 2,
"sort-imports-es6-autofix/sort-imports-es6": [
"error",
{
"ignoreCase": true
}
],
"flowtype/define-flow-type": "error",
"flowtype/no-dupe-keys": "error",
"flowtype/no-primitive-constructor-types": "error",
"flowtype/no-types-missing-file-annotation": "error",
"flowtype/no-weak-types": "off",
"flowtype/require-parameter-type": "off",
"flowtype/require-return-type": "off",
"flowtype/require-valid-file-annotation": [
"error",
"always",
{
"annotationStyle": "block"
}
],
"flowtype/require-variable-type": "off",
"flowtype/sort-keys": "off",
"flowtype/type-id-match": "off",
"flowtype/use-flow-type": "error"
}
}