-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtypescript-type-checking.js
88 lines (88 loc) · 2.17 KB
/
typescript-type-checking.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports.recommended = {
rules: {
'@typescript-eslint/await-thenable': 2,
'@typescript-eslint/consistent-type-exports': [
2,
{
fixMixedExportsWithInlineTypeSpecifier: true,
},
],
'@typescript-eslint/dot-notation': 2,
'@typescript-eslint/no-base-to-string': [
2,
{
ignoredTypeNames: ['RegExp'],
},
],
'@typescript-eslint/no-confusing-void-expression': [
2,
{
ignoreArrowShorthand: true,
ignoreVoidOperator: false,
},
],
'@typescript-eslint/no-floating-promises': [
2,
{
ignoreIIFE: true,
ignoreVoid: true,
},
],
'@typescript-eslint/no-for-in-array': 2,
'@typescript-eslint/no-implied-eval': 2,
'@typescript-eslint/no-meaningless-void-operator': [
2,
{
checkNever: true,
},
],
'@typescript-eslint/no-misused-promises': [
2,
{
checksConditionals: true,
checksVoidReturn: {
arguments: true,
attributes: false,
properties: true,
returns: true,
variables: true,
},
},
],
'@typescript-eslint/no-unnecessary-qualifier': 2,
'@typescript-eslint/prefer-includes': 2,
'@typescript-eslint/prefer-nullish-coalescing': [
2,
{
ignoreConditionalTests: true,
ignoreMixedLogicalExpressions: true,
},
],
'@typescript-eslint/prefer-optional-chain': 2,
'@typescript-eslint/prefer-readonly': [
2,
{
onlyInlineLambdas: true,
},
],
'@typescript-eslint/prefer-reduce-type-parameter': 2,
'@typescript-eslint/prefer-regexp-exec': 2,
'@typescript-eslint/prefer-return-this-type': 2,
'@typescript-eslint/prefer-string-starts-ends-with': 2,
'@typescript-eslint/promise-function-async': 2,
'@typescript-eslint/require-array-sort-compare': [
2,
{
ignoreStringArrays: false,
},
],
'@typescript-eslint/return-await': [2, 'always'],
'@typescript-eslint/switch-exhaustiveness-check': 2,
'@typescript-eslint/unbound-method': [
2,
{
ignoreStatic: true,
},
],
},
};