-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
107 lines (106 loc) · 2.6 KB
/
.eslintrc
File metadata and controls
107 lines (106 loc) · 2.6 KB
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
{
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"useJSXTextNode": true,
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"react-native/react-native": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 0,
"react-native/no-raw-text": 2,
"semi": ["warn", "never"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"quotes": ["warn", "single"],
"no-restricted-syntax": 0,
"no-await-in-loop": 0,
"object-curly-newline": 0,
"no-constant-condition": 2,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/state-in-constructor": [2, "never"],
"no-mixed-operators": 0,
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 2,
"jsx-a11y/media-has-caption": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-underscore-dangle": 0,
"no-global-assign": 0,
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"import/prefer-default-export": 0,
"import/no-named-as-default": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"max-lines": [
"error",
{
"max": 500,
"skipBlankLines": true,
"skipComments": true
}
],
"max-len": [
"error",
100,
{
"ignoreComments": true,
"ignoreTemplateLiterals": true,
"ignoreStrings": true
}
],
"curly": 0,
"consistent-return": 0,
"arrow-parens": 0,
"react/no-array-index-key": 0,
"no-return-assign": 0,
"comma-dangle": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": 0,
"no-multi-str": 0,
"newline-before-return": 2,
"newline-after-var": 2,
"newline-per-chained-call": 2,
"import/newline-after-import": 2,
"react/jsx-props-no-spreading": 0,
"react/require-default-props": 0,
"no-loops/no-loops": 0
},
"plugins": [
"react-native",
"prettier",
"no-loops",
"react-hooks",
"plugin:@typescript-eslint/recommended"
]
}