Repository navigation
fix(lint): exempt Tailwind at-rules from at-rule-prelude-no-invalid - #36
Merged
Merged
Conversation
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 <utility classes>` 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) <[email protected]>
vpetersson
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
bun run lint:cssfails ondependabot/bun/stylelint-17.15.0(#35) with 60+ errors of the form:stylelint 17.15.0 enables
at-rule-prelude-no-invalidthroughstylelint-config-standard. The rule validates every at-rule prelude against the CSS spec, so Tailwind's@apply <utility classes>is rejected. This is a lint-config gap, not a problem with the stylelint upgrade itself.Fix
Exempt the same at-rules
.stylelintrc.jsonalready exempts fromat-rule-no-unknown.Verification
Ran
lint:csslocally against both versions with this change applied:So this is safe to land ahead of #35; once it is on
master, rebasing #35 should turn it green.🤖 Generated with Claude Code