forked from GetStream/stream-chat-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
189 lines (189 loc) · 5.38 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:jest/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"modules": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["babel", "markdown", "better-styled-components", "sort-destructure-keys"],
"rules": {
"array-callback-return": 2,
"arrow-body-style": 2,
"better-styled-components/sort-declarations-alphabetically": 0,
"comma-dangle": 0,
"babel/no-invalid-this": 2,
"default-case": 2,
"eqeqeq": [2, "smart"],
"jest/expect-expect": 0,
"jest/no-conditional-expect": 0,
"jsx-quotes": ["error", "prefer-single"],
"linebreak-style": [2, "unix"],
"no-console": 0,
"no-mixed-spaces-and-tabs": 1,
"no-self-compare": 2,
"no-underscore-dangle": [2, { "allowAfterThis": true }],
"no-unused-vars": [1, { "ignoreRestSiblings": true }],
"no-useless-concat": 2,
"no-var": 2,
"object-shorthand": 1,
"prefer-const": 1,
"react/jsx-sort-props": [
"error",
{
"callbacksLast": false,
"ignoreCase": true,
"noSortAlphabetically": false,
"reservedFirst": false,
"shorthandFirst": false,
"shorthandLast": false
}
],
"react/prop-types": 0,
"require-await": 2,
"semi": [1, "always"],
"sort-destructure-keys/sort-destructure-keys": [2, { "caseSensitive": false }],
"sort-imports": [
"error",
{
"allowSeparatedGroups": true,
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
],
"sort-keys": ["error", "asc", { "caseSensitive": false, "minKeys": 2, "natural": false }],
"valid-typeof": 2
},
"settings": {
"import/resolver": {
"babel-module": {},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"paths": ["src"]
}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"overrides": [
{
"files": ["*.md"],
"rules": {
"no-undef": 0,
"react/jsx-no-undef": 0,
"react/react-in-jsx-scope": 0,
"semi": 0
}
},
{
"env": {
"es6": true,
"browser": true
},
"extends": [
"@react-native-community",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier"
],
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"babel",
"markdown",
"prettier",
"react",
"typescript-sort-keys",
"better-styled-components",
"sort-destructure-keys"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"better-styled-components/sort-declarations-alphabetically": 1,
"react-hooks/exhaustive-deps": 0,
"react-native/no-inline-styles": 0,
"array-callback-return": 2,
"arrow-body-style": 2,
"comma-dangle": 0,
"babel/no-invalid-this": 2,
"default-case": 2,
"eqeqeq": [2, "smart"],
"linebreak-style": [2, "unix"],
"jsx-quotes": ["error", "prefer-single"],
"no-console": 0,
"no-mixed-spaces-and-tabs": 1,
"no-self-compare": 2,
"no-underscore-dangle": [2, { "allowAfterThis": true }],
"no-unused-vars": [1, { "ignoreRestSiblings": true, "args":"none" }],
"no-useless-concat": 2,
"no-var": 2,
"object-shorthand": 1,
"prefer-const": 1,
"react/display-name": 0,
"react/jsx-sort-props": [
"error",
{
"callbacksLast": false,
"ignoreCase": true,
"noSortAlphabetically": false,
"reservedFirst": false,
"shorthandFirst": false,
"shorthandLast": false
}
],
"react/prop-types": 0,
"require-await": 2,
"semi": [1, "always"],
"sort-destructure-keys/sort-destructure-keys": [2, { "caseSensitive": false }],
"sort-imports": [
"error",
{
"allowSeparatedGroups": true,
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
],
"sort-keys": ["error", "asc", { "caseSensitive": false, "minKeys": 2, "natural": false }],
"typescript-sort-keys/interface": [
"error",
"asc",
{ "caseSensitive": false, "natural": true, "requiredFirst": true }
],
"typescript-sort-keys/string-enum": [
"error",
"asc",
{ "caseSensitive": false, "natural": true }
],
"valid-typeof": 2
}
}
]
}