-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.9 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
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
project: ['./tsconfig.json']
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['@typescript-eslint', 'deprecation', 'prettier', 'jsdoc', 'unicorn'],
rules: {
'no-return-await': 'off',
'max-classes-per-file': 'off',
'require-await': 2,
'class-methods-use-this': 'off',
'no-plusplus': 'off',
'no-console': 1,
'no-shadow': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': 1,
'no-unused-expressions': 'off',
'no-useless-constructor': 'off',
'new-cap': 'off',
'comma-dangle': ['error', 'never'],
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'jsdoc/check-alignment': 1,
'jsdoc/check-indentation': 1,
'jsdoc/check-param-names': 1,
'jsdoc/check-syntax': 1,
'jsdoc/check-tag-names': 1,
'jsdoc/check-types': 1,
'jsdoc/require-returns-check': 1,
'jsdoc/require-returns-type': 1,
'unicorn/better-regex': 'error',
'unicorn/prefer-spread': 'error',
'unicorn/prefer-string-slice': 'error',
'unicorn/throw-new-error': 'error',
'prettier/prettier': 'error',
camelcase: 'off',
'no-param-reassign': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-description-complete-sentence': 'off',
'no-loops/no-loops': 'off',
'@typescript-eslint/return-await': ['error', 'always'],
'@typescript-eslint/explicit-function-return-type': 1,
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-explicit-any': 2,
'@typescript-eslint/no-unused-expressions': 2,
'@typescript-eslint/array-type': ['error', {
default: 'array',
readonly: 'array'
}],
'deprecation/deprecation': 'warn'
}
};