-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
186 lines (186 loc) · 4.75 KB
/
.eslintrc
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": [
"import",
"react",
"@typescript-eslint",
"prettier",
"react-hooks"
],
"env": {
"es6": true,
"node": true,
"jest": true,
"browser": true
},
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {
"alwaysTryTypes": true
}
}
},
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"quotes": 0,
"prefer-const": 0,
"import/no-duplicates": 0,
"object-curly-newline": 0,
"react/jsx-filename-extension": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-debugger":"off",
"linebreak-style": "off",
"semi": [
"warn",
"always"
],
"complexity": [
"warn",
{
"max": 10
}
],
"max-params": [
"warn",
4
],
"arrow-parens": [
1,
"as-needed"
],
"prefer-spread": "off",
"react/prop-types": "off",
"react/jsx-no-bind": [
"warn",
{
"ignoreRefs": true,
"allowArrowFunctions": true,
"ignoreDOMComponents": true
}
],
"react/jsx-fragments": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
"operator-linebreak": [
1,
"after",
{
"overrides": {
"?": "before",
":": "before"
}
}
],
"no-extra-semi": 1,
"semi-spacing": [
1,
{
"before": false,
"after": true
}
],
"comma-spacing": [
"warn",
{
"before": false,
"after": true
}
],
"space-before-function-paren": [
1,
{
"asyncArrow": "always",
"anonymous": "never",
"named": "never"
}
],
"brace-style": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"no-extra-parens": "off",
"@typescript-eslint/no-shadow": ["warn"],
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/brace-style": ["warn", "1tbs"],
"@typescript-eslint/no-extra-semi": ["warn"],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-extraneous-class": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/explicit-function-return-type": [
"off",
{
"allowExpressions": false,
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true,
"allowConciseArrowFunctionExpressionsStartingWithVoid": true
}
],
"@typescript-eslint/no-inferrable-types": [
"warn",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-this-alias": [
"warn",
{
"allowDestructuring": true,
"allowedNames": ["that"]
}
]
}
}