Skip to content

Commit

Permalink
Fix function-no-unknow performance
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Jun 30, 2023
1 parent 8051822 commit 94a4648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rules/function-no-unknown/index.js
Expand Up @@ -62,6 +62,8 @@ const rule = (primary, secondaryOptions) => {
root.walkDecls((decl) => {
const { value } = decl;

if (!value.includes('(')) return;

if (!isStandardSyntaxValue(value)) return;

/**
Expand Down

0 comments on commit 94a4648

Please sign in to comment.