Skip to content

Commit

Permalink
fix: Don't short circuit $ suffix properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jan 26, 2022
1 parent f7577f6 commit d4a94c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/rules/suffix-subjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d4a94c0

Please sign in to comment.