-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
46 lines (46 loc) · 1.2 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
es6: true,
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'class-methods-use-this': 'off',
'newline-per-chained-call': ["error", { ignoreChainWithDepth: 1 }],
'indent': ['error', 2, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
MemberExpression: 1,
ArrayExpression: 1,
FunctionDeclaration: {
parameters: 1,
body: 1
},
FunctionExpression: {
parameters: 1,
body: 1
}
}],
'@typescript-eslint/no-extra-semi': 'off',
'space-before-function-paren': ['error', 'always'],
'no-use-before-define': ['error', { functions: false }],
'func-names': 'error',
curly: ['error', 'all'],
'arrow-parens': ['error', 'always'],
'brace-style': ["error", "1tbs"],
'no-underscore-dangle': 'off',
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
}
};