-
Notifications
You must be signed in to change notification settings - Fork 218
/
.eslintrc.js
63 lines (63 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
'env': {
'browser': true,
'node': true
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint'
],
'rules': {
// '@typescript-eslint/class-name-casing': 'warn', https://github.com/typescript-eslint/typescript-eslint/issues/2077
'@typescript-eslint/member-delimiter-style': [
'warn',
{
'multiline': {
'delimiter': 'semi',
'requireLast': true
},
'singleline': {
'delimiter': 'semi',
'requireLast': false
}
}
],
'@typescript-eslint/semi': [
'warn',
'always'
],
'constructor-super': 'warn',
'curly': 'warn',
'eqeqeq': [
'warn',
'always'
],
'no-async-promise-executor': 'warn',
'no-buffer-constructor': 'warn',
'no-caller': 'warn',
'no-debugger': 'warn',
'no-duplicate-case': 'warn',
'no-duplicate-imports': 'warn',
'no-eval': 'warn',
'no-extra-semi': 'warn',
'no-new-wrappers': 'warn',
'no-redeclare': 'off',
'no-sparse-arrays': 'warn',
'no-throw-literal': 'warn',
'no-unsafe-finally': 'warn',
'no-unused-labels': 'warn',
'@typescript-eslint/no-redeclare': 'warn',
'code-no-unexternalized-strings': 'warn',
'no-throw-literal': 'warn',
'no-var': 'warn',
'code-no-unused-expressions': [
'warn',
{
'allowTernary': true
}
],
}
};