Skip to content

Commit

Permalink
Update packages/eslint-plugin/src/rules/class-literal-property-style.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Mar 18, 2024
1 parent 02fd8b4 commit 555aa63
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -97,9 +97,12 @@ export default createRule<Options, MessageIds>({

properties.forEach(node => {
const { value } = node;
const name = getStringValue(node.key);
if (!value || !isSupportedLiteral(value)) {
return;
}

if (!value || excludeSet.has(name) || !isSupportedLiteral(value)) {
const name = getStringValue(node.key);
if (excludeSet.has(name)) {
return;
}

Expand Down

0 comments on commit 555aa63

Please sign in to comment.