@@ -94,17 +94,14 @@ module.exports = {
94
94
allowSingleLine : false
95
95
}
96
96
] ,
97
-
98
- // Disabled for now. It crashes when run on the Caprine codebase.
99
- // 'comma-spacing': 'off',
100
- // '@typescript-eslint/comma-spacing': [
101
- // 'error',
102
- // {
103
- // before: false,
104
- // after: true
105
- // }
106
- // ],
107
-
97
+ 'comma-spacing' : 'off' ,
98
+ '@typescript-eslint/comma-spacing' : [
99
+ 'error' ,
100
+ {
101
+ before : false ,
102
+ after : true
103
+ }
104
+ ] ,
108
105
'default-param-last' : 'off' ,
109
106
'@typescript-eslint/default-param-last' : 'error' ,
110
107
'@typescript-eslint/consistent-type-assertions' : [
@@ -115,29 +112,33 @@ module.exports = {
115
112
}
116
113
] ,
117
114
118
- // Disabled because it's not fully usable yet:
119
- // https://github.com/typescript-eslint/typescript-eslint/issues/142
115
+ // This rule is fine. I just don't want to deal with the churn yet. Enable this in 2022.
120
116
// '@typescript-eslint/consistent-type-definitions': [
121
117
// 'error',
122
118
// 'type'
123
119
// ],
124
120
125
121
// Disabled because it's too annoying. Enable it when it's more mature, smarter, and more flexible.
122
+ // https://github.com/typescript-eslint/typescript-eslint/search?q=%22explicit-function-return-type%22&state=open&type=Issues
126
123
// '@typescript-eslint/explicit-function-return-type': [
127
124
// 'error',
128
125
// {
129
126
// allowExpressions: true,
130
- // allowTypedFunctionExpressions: true
127
+ // allowTypedFunctionExpressions: true,
128
+ // allowHigherOrderFunctions: true,
129
+ // allowConciseArrowFunctionExpressionsStartingWithVoid: false
131
130
// }
132
131
// ],
133
132
134
133
// Disabled for now as it has too many false-positives.
134
+ // https://github.com/typescript-eslint/typescript-eslint/search?q=%22explicit-module-boundary-types%22&state=open&type=Issues
135
135
// '@typescript-eslint/explicit-module-boundary-types': [
136
136
// 'error',
137
137
// {
138
138
// allowTypedFunctionExpressions: true,
139
139
// allowHigherOrderFunctions: true,
140
- // allowDirectConstAssertionInArrowFunctions: true
140
+ // allowDirectConstAssertionInArrowFunctions: true,
141
+ // shouldTrackReferences: true
141
142
// }
142
143
// ],
143
144
@@ -255,7 +256,7 @@ module.exports = {
255
256
'@typescript-eslint/no-extra-non-null-assertion' : 'error' ,
256
257
257
258
// Disabled because it's buggy. It transforms `...(personalToken ? {Authorization: `token ${personalToken}`} : {})` into `...personalToken ? {Authorization: `token ${personalToken}`} : {}` which is not valid.
258
- // TODO: Report this issue.
259
+ // https://github.com/typescript-eslint/typescript-eslint/search?q=%22no-extra-parens%22&state=open&type=Issues
259
260
'no-extra-parens' : 'off' ,
260
261
// '@typescript-eslint/no-extra-parens': [
261
262
// 'error',
@@ -434,7 +435,8 @@ module.exports = {
434
435
] ,
435
436
'@typescript-eslint/type-annotation-spacing' : 'error' ,
436
437
437
- // Disabled as it crashes on most code
438
+ // Disabled as it crashes on most code.
439
+ // https://github.com/typescript-eslint/typescript-eslint/search?q=%22unbound-method%22&state=open&type=Issues
438
440
// '@typescript-eslint/unbound-method': [
439
441
// 'error',
440
442
// {
@@ -448,11 +450,7 @@ module.exports = {
448
450
// TypeScript supports these features
449
451
'no-useless-catch' : 'error' ,
450
452
451
- // The rule is deprecated in ESLint and it doesn't fully make sense for TypeScript.
452
- // TODO: Remove this when the rule is removed from XO.
453
- 'valid-jsdoc' : 'off' ,
454
-
455
453
// Disabled because of https://github.com/typescript-eslint/typescript-eslint/issues/60
456
- 'no-redeclare' : 'off' ,
454
+ 'no-redeclare' : 'off'
457
455
}
458
456
} ;
0 commit comments