Skip to content

Commit

Permalink
Fix function-no-unknown performance (#7004)
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
jeddy3 and ybiquitous committed Jun 30, 2023
1 parent 0e64a0f commit 354fbfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-tools-rest.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `function-no-unknown` performance
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 354fbfd

Please sign in to comment.