-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc.js
48 lines (48 loc) · 1.32 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 = {
env: {node: true},
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'no-async-promise-executor': 0,
'no-case-declarations': ['warn'],
'no-irregular-whitespace': 0,
'require-await': 1,
'no-console': 0,
'indent': 'off',
'@typescript-eslint/indent': [
'error',
2,
{
'SwitchCase': 1,
'ignoredNodes': [
'FunctionExpression > .params[decorators.length > 0]',
'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',
'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key'
]
}
],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'prefer-const': ['warn'],
'@typescript-eslint/no-unused-vars': [
'warn',
{'vars': 'all', 'args': 'after-used', 'ignoreRestSiblings': false}
],
'switch-colon-spacing': [
'error',
{'after': false, 'before': false}
],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/ban-ts-comment': 0,
},
};