-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
.eslintrc
77 lines (69 loc) · 1.69 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
{
"env": {
"browser": true
},
"extends": "@callstack",
"plugins": ["eslint-plugin-local-rules"],
"rules": {
"local-rules/no-import-react-forwardref": "error",
"local-rules/no-react-forwardref-usage": "error",
"one-var": "off",
"no-multi-assign": "off",
"no-nested-ternary": "off",
"no-undef": "off",
"global-require": "off",
"import/no-extraneous-dependencies": "off",
"import/first": "off",
"import/order": [
"error",
{
"groups": [
["external", "builtin"],
"internal",
["sibling", "parent"],
"index"
],
"pathGroups": [
{
"pattern": "@(react|react-native)",
"group": "external",
"position": "before"
},
{
"pattern": "@src/**",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": ["internal", "react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "off",
"react-native/no-raw-text": "off",
"react-native-a11y/has-valid-accessibility-descriptors": "off"
},
"overrides": [
{
"files": ["*.test.js", "*.test.tsx"],
"rules": {
"local-rules/no-react-forwardref-usage": "off"
}
}
],
"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"]
}
}
}
}