From 499e847e9cbcb389886d50d1dfdb5a5790c96293 Mon Sep 17 00:00:00 2001 From: Rafael Santana Date: Tue, 12 Oct 2021 20:16:59 -0300 Subject: [PATCH] fixup! refactor(eslint-plugin): avoid looking for nodes that do not match the provided options --- .../eslint-plugin/src/rules/class-literal-property-style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/class-literal-property-style.ts b/packages/eslint-plugin/src/rules/class-literal-property-style.ts index 6e78b625353..b3f9fb401c2 100644 --- a/packages/eslint-plugin/src/rules/class-literal-property-style.ts +++ b/packages/eslint-plugin/src/rules/class-literal-property-style.ts @@ -57,7 +57,7 @@ export default util.createRule({ create(context, [style]) { return { ...(style === 'fields' && { - MethodDefinition(node: TSESTree.MethodDefinition): void { + MethodDefinition(node): void { if ( node.kind !== 'get' || !node.value.body ||