Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix false positives for interpolation and shorthand in font-family-name-quotes #6335

Merged
merged 4 commits into from
Sep 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Change timing of the syntax check
  • Loading branch information
kimulaco committed Sep 10, 2022
commit 53b8972042fbc8992b36a7c17db475b645cf7583
8 changes: 4 additions & 4 deletions lib/rules/font-family-name-quotes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ const rule = (primary, _secondary, context) => {
}

root.walkDecls(/^font(-family)?$/i, (decl) => {
if (!isStandardSyntaxValue(decl.value)) {
return;
}

let fontFamilyNodes = makeMutableFontFamilies(findFontFamily(decl.value), decl);

if (fontFamilyNodes.length === 0) {
Expand All @@ -163,10 +167,6 @@ const rule = (primary, _secondary, context) => {
return;
}

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

if (isVariable(rawFamily)) {
return;
}
Expand Down