Skip to content

Commit 298d66c

Browse files
committed
fix(eslint-plugin): [no-extra-parens] Fix build error
1 parent 2d15644 commit 298d66c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/eslint-plugin/src/rules/no-extra-parens.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/typescript-estree';
2+
import { RuleListener } from 'ts-eslint';
23
import baseRule from 'eslint/lib/rules/no-extra-parens';
34
import * as util from '../util';
45

@@ -84,7 +85,7 @@ export default util.createRule<Options, MessageIds>({
8485
return rule(node);
8586
}
8687

87-
return Object.assign({}, rules, {
88+
const overrides: RuleListener = {
8889
// ArrayExpression
8990
ArrowFunctionExpression(node) {
9091
if (node.body.type !== AST_NODE_TYPES.TSAsExpression) {
@@ -222,6 +223,7 @@ export default util.createRule<Options, MessageIds>({
222223
return rules.YieldExpression(node);
223224
}
224225
},
225-
});
226+
};
227+
return Object.assign({}, rules, overrides);
226228
},
227229
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy