-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (38 loc) · 1.03 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
extends: ['airbnb-typescript/base'],
rules: {
'linebreak-style': ['error', 'windows'],
'lines-between-class-members': [
'error',
'always',
{
exceptAfterSingleLine: true,
},
],
'no-plusplus': 'off',
'no-console': ['warn', { allow: ['log', 'warn', 'error'] }],
'import/prefer-default-export': 'off',
'class-methods-use-this': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'arrow-body-style': 'off',
'import/no-cycle': 'off',
'indent': 'off',
'@typescript-eslint/indent': [
'error',
2,
{
'ignoredNodes': [
'FunctionExpression > .params[decorators.length > 0]',
'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',
'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key'
]
}
]
},
parserOptions: {
project: ['./tsconfig.json'],
},
};