Skip to content

Commit 3be2980

Browse files
committed
Disable the no-extra-parens rule
1 parent ad7b1d2 commit 3be2980

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,19 @@ module.exports = {
135135
// The `ban-types` rule handles this better
136136
// '@typescript-eslint/no-explicit-any': 'error',
137137

138+
// Disabled because it's buggy. It transforms `...(personalToken ? {Authorization: `token ${personalToken}`} : {})` into `...personalToken ? {Authorization: `token ${personalToken}`} : {}` which is not valid.
139+
// TODO: Report this issue.
138140
'no-extra-parens': 'off',
139-
'@typescript-eslint/no-extra-parens.md': 'error',
141+
// '@typescript-eslint/no-extra-parens': [
142+
// 'error',
143+
// 'all',
144+
// {
145+
// conditionalAssign: false,
146+
// nestedBinaryExpressions: false,
147+
// ignoreJSX: 'multi-line'
148+
// }
149+
// ],
150+
140151
'@typescript-eslint/no-extraneous-class': 'error',
141152
'@typescript-eslint/no-for-in-array': 'error',
142153
'@typescript-eslint/no-inferrable-types': 'error',

0 commit comments

Comments
 (0)