-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.2 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'unused-imports'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'@typescript-eslint/member-ordering': 'error',
'lines-between-class-members': 'error',
'padding-line-between-statements': 'error',
'no-unused-vars': 'off',
'max-len': ['error', {code: 100}],
'max-depth': ['error', 3],
'max-lines-per-function': ['error', 40],
'max-params': ['error', 6],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
'unused-imports/no-unused-imports': 'error'
},
overrides: [
{
files: ['src/**/*.test.ts', 'src/**/*.e2e.ts'],
rules: {
'max-lines-per-function': ['error', 400],
'max-len': ['error', {code: 300}],
},
},
],
};