-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc
138 lines (138 loc) · 3.13 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"extends": [
"react-app",
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:import/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier",
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
},
},
"overrides": [
{
"files": ["*.jsx", "*.js"],
},
],
"plugins": ["flowtype", "import", "prettier", "react", "react-hooks"],
"settings": {
"react": {
"pragma": "React",
"version": "detect",
"flowVersion": "0.89",
},
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [
".jsx",
".web.jsx",
".js",
".android.js",
".ios.js",
".web.js",
".native.js",
".svg",
".native.jsx",
".json",
],
},
},
"import/ignore": ["node_modules/react-native/index\\.js$"],
},
"rules": {
"prettier/prettier": "warn",
"react/prop-types": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "off",
"import/no-cycle": "warn",
"import/named": "warn",
"import/no-unresolved": ["warn", { "ignore": ["\\.svg", "data$", "\\.gql"] }],
"import/first": "warn",
"import/no-duplicates": "warn",
"import/no-anonymous-default-export": "off",
"import/no-named-as-default-member": "off",
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
},
],
"sort-imports": [
"warn",
{
"ignoreCase": true,
"ignoreDeclarationSort": true,
},
],
"no-console": [
"warn",
{
"allow": ["info"],
},
],
"no-await-in-loop": "warn",
"curly": "warn",
"dot-notation": "warn",
"no-else-return": "warn",
"no-implicit-coercion": [
"warn",
{
"boolean": false,
},
],
"no-return-await": "warn",
"no-useless-catch": "warn",
"require-await": "warn",
"array-bracket-newline": [
"warn",
{
"multiline": true,
},
],
"block-spacing": "warn",
"brace-style": [
"warn",
"1tbs",
{
"allowSingleLine": true,
},
],
"camelcase": [
"warn",
{
"ignoreDestructuring": true,
"properties": "never",
},
],
"comma-dangle": ["warn", "only-multiline"],
"comma-spacing": "warn",
"computed-property-spacing": "warn",
"lines-between-class-members": "warn",
"lines-around-comment": [
"warn",
{
"beforeBlockComment": true,
"beforeLineComment": true,
"allowBlockStart": true,
"allowObjectStart": true,
"allowArrayStart": true,
"allowClassStart": true,
"afterBlockComment": false,
"afterLineComment": false,
"allowBlockEnd": false,
"allowObjectEnd": false,
"allowArrayEnd": false,
"allowClassEnd": false,
},
],
"no-negated-condition": "off",
"space-before-function-paren": "off",
"require-atomic-updates": "off",
},
}