-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (58 loc) · 1.6 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['airbnb-base', 'prettier'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
},
rules: {
complexity: ['error', 10],
eqeqeq: 2,
"max-statements-per-line": [2, {
"max": 1
}],
camelcase: 'warn',
'class-methods-use-this': 'warn',
'consistent-return': 'warn',
'default-case': 'off',
'global-require': 'warn',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
ts: 'never',
},
],
'import/no-extraneous-dependencies': 'off',
'import/no-relative-packages': 'off',
'import/prefer-default-export': 'warn',
'max-classes-per-file': 'warn',
'new-cap': 'warn',
'no-await-in-loop': 'warn',
'no-console': 'warn',
'no-continue': 'off',
'no-dupe-class-members': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-prototype-builtins': 'warn',
'no-restricted-syntax': 'off',
'no-return-assign': 'warn',
'no-return-await': 'warn',
'no-shadow': 'off',
'no-template-curly-in-string': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
env: { jest: true, browser: true, node: true },
globals: {
BigInt: true,
},
};