@@ -94,17 +94,14 @@ module.exports = {
9494allowSingleLine : false
9595}
9696] ,
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+ ] ,
108105'default-param-last' : 'off' ,
109106'@typescript-eslint/default-param-last' : 'error' ,
110107'@typescript-eslint/consistent-type-assertions' : [
@@ -115,29 +112,33 @@ module.exports = {
115112}
116113] ,
117114
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.
120116// '@typescript-eslint/consistent-type-definitions': [
121117// 'error',
122118// 'type'
123119// ],
124120
125121// 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
126123// '@typescript-eslint/explicit-function-return-type': [
127124// 'error',
128125// {
129126// allowExpressions: true,
130- // allowTypedFunctionExpressions: true
127+ // allowTypedFunctionExpressions: true,
128+ // allowHigherOrderFunctions: true,
129+ // allowConciseArrowFunctionExpressionsStartingWithVoid: false
131130// }
132131// ],
133132
134133// 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
135135// '@typescript-eslint/explicit-module-boundary-types': [
136136// 'error',
137137// {
138138// allowTypedFunctionExpressions: true,
139139// allowHigherOrderFunctions: true,
140- // allowDirectConstAssertionInArrowFunctions: true
140+ // allowDirectConstAssertionInArrowFunctions: true,
141+ // shouldTrackReferences: true
141142// }
142143// ],
143144
@@ -255,7 +256,7 @@ module.exports = {
255256'@typescript-eslint/no-extra-non-null-assertion' : 'error' ,
256257
257258// 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
259260'no-extra-parens' : 'off' ,
260261// '@typescript-eslint/no-extra-parens': [
261262// 'error',
@@ -434,7 +435,8 @@ module.exports = {
434435] ,
435436'@typescript-eslint/type-annotation-spacing' : 'error' ,
436437
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
438440// '@typescript-eslint/unbound-method': [
439441// 'error',
440442// {
@@ -448,11 +450,7 @@ module.exports = {
448450// TypeScript supports these features
449451'no-useless-catch' : 'error' ,
450452
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-
455453// Disabled because of https://github.com/typescript-eslint/typescript-eslint/issues/60
456- 'no-redeclare' : 'off' ,
454+ 'no-redeclare' : 'off'
457455}
458456} ;
0 commit comments