-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
51 lines (51 loc) · 1.06 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
module.exports = {
env: {
es2020: true,
node: true,
mocha: true,
},
extends: [
'standard',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
'no-cond-assign': 0,
'no-new': 0,
'no-unused-vars': 0,
'no-inner-declarations': 0,
'no-useless-constructor': 0,
'spaced-comment': 0,
quotes: 0,
'standard/no-callback-literal': 0,
// 'no-return-await': 0,
'arrow-parens': ['error', 'always'],
'quote-props': ['error', 'as-needed'],
'comma-dangle': ['error', 'always-multiline'],
semi: 'off',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
},
}],
'import/order': [
2,
{
groups: [
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
],
'newlines-between': 'always',
},
],
},
}