From d4a94c093dc1b05f066f95b86626872ddaf27e5d Mon Sep 17 00:00:00 2001 From: Nicholas Jamieson Date: Wed, 26 Jan 2022 10:59:02 +1000 Subject: [PATCH] fix: Don't short circuit $ suffix properties. --- source/rules/suffix-subjects.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/rules/suffix-subjects.ts b/source/rules/suffix-subjects.ts index 50d1d953..4c774bd9 100644 --- a/source/rules/suffix-subjects.ts +++ b/source/rules/suffix-subjects.ts @@ -129,9 +129,7 @@ const rule = ruleCreator({ } } }, - "PropertyDefinition[key.name=/[^$]$/][computed=false]": ( - node: es.PropertyDefinition - ) => { + "PropertyDefinition[computed=false]": (node: es.PropertyDefinition) => { const anyNode = node as any; if (validate.properties) { checkNode(anyNode.key); @@ -219,9 +217,7 @@ const rule = ruleCreator({ checkNode(node); } }, - "TSPropertySignature[key.name=/[^$]$/][computed=false]": ( - node: es.Node - ) => { + "TSPropertySignature[computed=false]": (node: es.Node) => { const anyNode = node as any; if (validate.properties) { checkNode(anyNode.key);