-
Notifications
You must be signed in to change notification settings - Fork 70
/
.eslintrc.json
106 lines (106 loc) · 2.13 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
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"@react-native",
"plugin:import/typescript"
],
"env": {
"browser": true,
"jest": true,
"react-native/react-native": true,
"node": true
},
"plugins": [
"react",
"react-native",
"react-hooks",
"jsx-a11y",
"import",
"prettier",
"jest",
"eslint-comments"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
":react-native/style-sheet-object-names": ["EStyleSheet"]
},
"rules": {
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"max-len": [
"warn",
100
],
"react/forbid-prop-types": [
0
],
"no-underscore-dangle": 0,
"react/require-default-props": [
0
],
"global-require": [
0
],
"func-names": [
"error",
"as-needed"
],
"linebreak-style": 0,
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"react/prop-types": 0,
"import/no-named-default": "off",
"no-param-reassign": "off",
"no-case-declarations": "off",
"import/no-cycle": "off",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "off",
"react/destructuring-assignment": [
1,
"always"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-unresolved": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"class-methods-use-this": "off",
"react/jsx-wrap-multilines": "off",
"jsx-one-expression-per-line": "off",
"react/jsx-one-expression-per-line": "off"
}
}