-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.01 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 = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
plugins: [
'@typescript-eslint',
],
rules: {
'eol-last': 2,
'no-multiple-empty-lines': ['error', {
'max': 1,
'maxEOF': 1,
'maxBOF': 0,
}],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'ignore',
exports: 'ignore',
functions: 'ignore',
}],
'no-duplicate-imports': ['error', {
'includeExports': true,
}],
'no-var': 'error',
'prefer-const': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
"brace-style": "off",
"@typescript-eslint/brace-style": ["error"],
},
}