-
Notifications
You must be signed in to change notification settings - Fork 258
/
.eslintrc.json
60 lines (59 loc) · 1.62 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
{
"extends": [
"plugin:react-native/all",
"standard-kit/prettier",
"standard-kit/prettier/jsx",
"standard-kit/prettier/node",
"standard-kit/prettier/react",
"standard-kit/prettier/typescript"
],
"globals": {
"fetch": true
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/switch-exhaustiveness-check": "error"
}
}
],
"parserOptions": {
"project": "tsconfig.json"
},
"plugins": ["simple-import-sort"],
"rules": {
"@typescript-eslint/default-param-last": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react-hooks/exhaustive-deps": [
"error",
{
"additionalHooks": "^useSceneFooterRender$"
}
],
"react/jsx-handler-names": "off",
"react-native/no-inline-styles": "off",
"react-native/no-raw-text": [
"error",
{
"skip": ["B", "EdgeText", "Paragraph", "SmallText", "WarningText"]
}
],
"react-native/sort-styles": "off",
"simple-import-sort/imports": "error"
},
"settings": {
"react": {
"version": "17.0.2"
}
}
}