-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 942 Bytes
/
.eslintrc.js
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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
tsx: true,
},
},
env: {
browser: true,
"react-native/react-native": true,
},
plugins: [
"react",
"react-native",
"@typescript-eslint",
"eslint-plugin-custom-rules",
],
settings: {
react: {
version: "detect",
},
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
ignorePatterns: ["android/*", "ios/*"],
rules: {
"react/react-in-jsx-scope": "off",
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2,
"react-native/no-inline-styles": "off",
"react-native/sort-styles": [
"error",
"asc",
{
ignoreClassNames: false,
ignoreStyleProperties: false,
},
],
},
};