-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
54 lines (54 loc) · 1.57 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
plugins: ['flowtype'],
extends: [
'eslint:recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'prettier',
],
globals: {
Optional: 'readonly',
MapType: 'readonly',
NodeJS: 'readonly',
Response: 'readonly',
Buffer: 'readonly',
JSX: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json', './tsconfig.test.json'],
},
rules: {
'arrow-body-style': 0,
'import/extensions': 0,
'no-unused-vars': 0,
'no-use-before-define': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'no-restricted-syntax': 0,
'no-unused-expressions': 0,
'no-shadow': 0,
'no-continue': 0,
'no-console': 1,
'default-case': 0,
'@typescript-eslint/switch-exhaustiveness-check': 2,
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-unused-vars': 1,
'@typescript-eslint/no-unsafe-call': 1,
'@typescript-eslint/no-unsafe-member-access': 1,
'@typescript-eslint/no-unsafe-assignment': 1,
'@typescript-eslint/no-unsafe-argument': 1,
'import/order': 0,
'consistent-return': 0,
'prefer-destructuring': 0,
'lines-between-class-members': 0,
'@typescript-eslint/no-empty-function': 0,
'no-promise-executor-return': 0,
'@typescript-eslint/no-floating-promises': 2,
'@typescript-eslint/no-non-null-assertion': 2,
'no-warning-comments': 1,
'@typescript-eslint/strict-boolean-expressions': 2,
},
};