-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
49 lines (49 loc) · 1.22 KB
/
.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
48
49
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'standard-with-typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react'],
settings: {
react: {
version: '18',
},
},
rules: {
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/comma-dangle': 0,
'@typescript-eslint/await-thenable': 0,
'multiline-ternary': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-confusing-void-expression': 0,
'@typescript-eslint/no-invalid-void-type': 0,
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/non-nullable-type-assertion-style': 0,
'@typescript-eslint/no-floating-promises': 0,
'react-hooks/exhaustive-deps': 0,
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/no-unsafe-argument': 'warn',
'@typescript-eslint/indent': 0,
},
}