Skip to content

Commit

Permalink
Fix function-name-case performance (#7010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Jun 30, 2023
1 parent 59d662d commit 7255ede
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-suits-reflect.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `function-name-case` performance
2 changes: 2 additions & 0 deletions lib/rules/function-name-case/index.js
Expand Up @@ -54,6 +54,8 @@ const rule = (primary, secondaryOptions, context) => {
}

root.walkDecls((decl) => {
if (!decl.value.includes('(')) return;

if (!isStandardSyntaxValue(decl.value)) return;

let needFix = false;
Expand Down

0 comments on commit 7255ede

Please sign in to comment.