-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint-ts.js
48 lines (48 loc) · 1013 Bytes
/
eslint-ts.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 = {
parser: '@typescript-eslint/parser',
extends: [
'./.eslintrc.json',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'@typescript-eslint'
],
rules: {
'no-extra-parens': 'off',
'@typescript-eslint/no-extra-parens': ["warn", "all", {
"nestedBinaryExpressions": false
}],
'@typescript-eslint/interface-name-prefix': 0,
indent: 'off',
'@typescript-eslint/indent': ['error', 'tab'],
'valid-jsdoc': 'off',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/member-delimiter-style': ['error', {
multiline: {
delimiter: 'comma',
requireLast: false
},
singleline: {
delimiter: 'comma',
requireLast: false
},
overrides: {
interface: {
multiline: {
delimiter: 'semi',
requireLast: true
},
singleline: {
delimiter: 'semi',
requireLast: true
}
}
}
}]
}
};