-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
49 lines (48 loc) · 1.61 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:all',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
rules: {
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'explicit' }],
'new-cap': ['error', { capIsNew: false }],
'max-params': ['error', { max: 5 }],
'max-lines-per-function': 'off',
'@typescript-eslint/require-await': 'off',
'class-methods-use-this': 'off',
'sort-keys': 'off',
'multiline-comment-style': 'off',
'max-lines': 'off',
'max-statements': 'off',
'func-style': 'off',
'one-var': 'off',
'capitalized-comments': 'off',
'no-undefined': 'off',
'no-use-before-define': 'off',
'no-magic-numbers': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'no-inline-comments': 'off',
'line-comment-position': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'max-classes-per-file': 'off',
'prefer-destructuring': 'off',
'@typescript-eslint/no-explicit-any': 'off' /* default is warn */,
'init-declarations': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'id-length': 'off',
'no-warning-comments': 'off',
'no-ternary': 'off',
},
};