Skip to content

Commit 2f327d4

Browse files
committed
fix(eslint-config-typescript): adjust no-extra-parens rule with core rule
1 parent e8d38bc commit 2f327d4

File tree

1 file changed

+7
-1
lines changed
  • packages/eslint-config-typescript/src

1 file changed

+7
-1
lines changed

packages/eslint-config-typescript/src/base.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ export const eslintConfigTypescriptBase: Linter.BaseConfig = {
130130
'@typescript-eslint/no-empty-function': 'warn',
131131
// Disallow unnecessary parentheses.
132132
'no-extra-parens': 'off',
133-
'@typescript-eslint/no-extra-parens': 'warn',
133+
'@typescript-eslint/no-extra-parens': [
134+
'warn',
135+
'all',
136+
{
137+
ignoreJSX: 'multi-line',
138+
},
139+
],
134140
// Disallow unnecessary semicolons.
135141
'no-extra-semi': 'off',
136142
'@typescript-eslint/no-extra-semi': 'warn',

0 commit comments

Comments
 (0)