-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
73 lines (73 loc) · 2.1 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
68
69
70
71
72
73
module.exports = {
root: true,
env: {
node: true,
es6: true,
mocha: true,
},
extends: [
'eslint:recommended',
'airbnb-base',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
],
globals: {
Optional: 'readonly',
MapType: 'readonly',
BigInt: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.test.json'],
},
plugins: ['@typescript-eslint', 'no-only-tests'],
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,
'@typescript-eslint/no-unsafe-return': 1,
'@typescript-eslint/require-await': 0,
'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/no-duplicate-enum-values': 1,
'no-only-tests/no-only-tests': 1,
'@typescript-eslint/strict-boolean-expressions': 2,
},
overrides: [
{
files: ['**/__tests__/**', './src/tests/**'],
rules: {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
},
},
],
};