-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.26 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"react-native/react-native": true
},
"plugins": ["react", "react-native", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react-native/no-inline-styles": "error",
"react-native/no-color-literals": "error",
"react-native/no-raw-text": "off",
"react/display-name": "off",
"@typescript-eslint/type-annotation-spacing": "off",
"no-irregular-whitespace": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react-native/sort-styles": [
"error",
"asc",
{
"ignoreClassNames": false,
"ignoreStyleProperties": false
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["error"]
}
}
]
}