-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
37 lines (37 loc) · 859 Bytes
/
.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
{
"env": {
"es2021": true,
"node": true,
"react-native/react-native": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks",
"react-native",
"jest"
],
"rules": {
"react/prop-types": "off",
"react/display-name": "off",
"react-native/no-unused-styles": "error",
"react-native/sort-styles": "warn",
"react-native/split-platform-components": "off",
"react-native/no-inline-styles": "warn",
"react-native/no-color-literals": "off",
"react-native/no-raw-text": "error",
"react-native/no-single-element-style-arrays": "error"
}
}