-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (66 loc) · 1.99 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
root: true,
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 6,
sourceType: 'module',
project: ['./**/tsconfig.json']
},
env: {
node: true,
browser: true,
es6: true
},
plugins: [
'react-hooks'
],
extends: [
'standard-with-typescript'
],
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true,
vars: 'all',
varsIgnorePattern: '^jsx$'
}
],
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typesript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/require-array-sort-compare': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'node/handle-callback-err': 'off',
'node/no-callback-literal': 'off',
'n/handle-callback-err': 'off',
'n/no-callback-literal': 'off',
'no-return-await': 'off',
'no-case-declarations': 'off',
'prefer-promise-reject-errors': 'off',
'prefer-optional-chain': 'off',
'symbol-description': 'off',
'no-template-curly-in-string': 'off',
'spaced-comment': 'off',
'no-fallthrough': 'off',
'no-useless-escape': 'off',
'object-shorthand': 'off'
}
}