-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
48 lines (46 loc) · 1.59 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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: false,
commonjs: true,
es6: true,
node: true,
},
plugins: ['@typescript-eslint', 'security'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:security/recommended', 'prettier'],
rules: {
// enable additional rules
indent: 'off',
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single', { avoidEscape: true }],
semi: 'off',
'@typescript-eslint/semi': ['error'],
// override configuration set by extending "eslint:recommended"
'no-empty': 'warn',
'no-cond-assign': ['error', 'always'],
// disable rules from base configurations
'for-direction': 'error',
'max-lines': 'off',
'array-type': 'off',
'new-parens': 'error',
'no-caller': 'error',
'no-bitwise': 'error',
'no-cond-assign': 'error',
'no-multiple-empty-lines': 'error',
'sort-keys': 'off',
'no-console': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'no-async-promise-executor': 'warn',
'no-constant-condition': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'no-useless-catch': 'warn',
},
};