-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
111 lines (111 loc) · 2.56 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
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
{
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"react-hooks",
"typescript-sort-keys",
"sort-keys-fix",
"simple-import-sort"
],
"extends": [
"@react-native",
"eslint:recommended",
"eslint-config-prettier",
"plugin:import/warnings",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"import/order": 1,
"import/no-named-as-default": 0,
"no-console": 2,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 2,
"react/prop-types": 0,
"react/no-unstable-nested-components": 0,
"react-native/no-inline-styles": 0,
"@typescript-eslint/no-shadow": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/no-empty-function": 0,
"typescript-sort-keys/interface": 1,
"typescript-sort-keys/string-enum": 1,
"react/jsx-sort-props": 1,
"sort-keys-fix/sort-keys-fix": 1,
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/camelcase": 0,
"react/display-name": 0,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"strict": [
"error",
"never"
],
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages. `react` related packages come first.
[
"^react",
"^@?\\w"
],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
[
"^"
],
// Relative imports.
// Anything that starts with a dot.
[
"^\\."
],
// Side effect imports.
[
"^\\u0000"
]
]
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "styled-components",
"message": "Please use styled-components/native instead."
}
]
}
]
},
"env": {
"browser": false
},
"overrides": [
{
"files": "**/*.+(ts|tsx)",
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
}