-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
73 lines (73 loc) · 2.1 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
{
"extends": ["plugin:prettier/recommended", "@react-native", "plugin:@typescript-eslint/recommended", "prettier"],
"plugins": ["prettier", "react", "react-native", "@typescript-eslint", "eslint-plugin-import"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "always"
}
],
"no-console": "error",
"react-hooks/exhaustive-deps": "warn",
"no-restricted-exports": ["error", { "restrictedNamedExports": ["default"] }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"react-native/no-unused-styles": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2,
"react-native/no-single-element-style-arrays": 2,
"react/react-in-jsx-scope": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true },
"groups": ["external", "builtin", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "src/*",
"group": "internal"
}
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"moduleDirectory": ["node_modules", "src/"],
"extensions": [".ts", ".tsx", ".js", "jsx"]
}
}
},
"overrides": [
{
"files": ["**/!(setupTests|test/utils|*.spec.*|*.test.*).ts?x"],
"rules": {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
]
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}