From 461acdd9a7e9ce1f80502e9ed89683c6655f924a Mon Sep 17 00:00:00 2001 From: small-claude <307551610+vpetersson-bot@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:09:49 +0000 Subject: [PATCH] fix(lint): exempt Tailwind at-rules from at-rule-prelude-no-invalid stylelint 17.15.0 turns on `at-rule-prelude-no-invalid` through stylelint-config-standard. The rule parses every at-rule prelude against the CSS spec, so Tailwind's `@apply ` is reported as an invalid prelude and `bun run lint:css` fails on every `@apply` in assets/css. Exempt the same at-rules the config already exempts from `at-rule-no-unknown`. Verified against both the pinned stylelint 17.14.1 and 17.15.0: lint:css is clean on both, so this can land ahead of the Dependabot bump in #35. Co-Authored-By: Claude Opus 5 (1M context) --- .stylelintrc.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.stylelintrc.json b/.stylelintrc.json index 09d9503..35df6a7 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -20,6 +20,25 @@ ] } ], + "at-rule-prelude-no-invalid": [ + true, + { + "ignoreAtRules": [ + "theme", + "utility", + "plugin", + "source", + "variant", + "custom-variant", + "reference", + "config", + "apply", + "layer", + "tailwind", + "screen" + ] + } + ], "function-no-unknown": [ true, {