forked from ephemeraHQ/converse-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (45 loc) · 1.14 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
{
"extends": "universe/native",
"ignorePatterns": ["dist/", "node_modules/", "vendor/"],
"plugins": [
"react",
"import",
"unused-imports",
"react-hooks",
"react-native"
],
"rules": {
"import/no-default-export": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"react-native/no-inline-styles": "warn",
"react-native/no-raw-text": "warn",
"react-native/no-single-element-style-arrays": "warn",
"react/jsx-no-bind": [
"warn",
{
"ignoreRefs": true,
"allowArrowFunctions": false,
"allowFunctions": false,
"allowBind": false,
"ignoreDOMComponents": true
}
],
"react/jsx-key": "error",
"prettier/prettier": "off", // We use prettier manually on the side
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "i18n-js",
"message": "You probably want to import the @i18n app module instead."
}
]
}
]
},
"root": true
}