Skip to content

Add ignoreAtRules for tailwind 4 #40

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [3.0.1](https://github.com/torchbox/stylelint-config-torchbox/compare/v3.0.0...v3.0.1) (2025-05-06)

### Features

- Add support for Tailwind CSS v4 `@` rules by updating the `scss/at-rule-no-unknown` ignore list. This prevents Stylelint from flagging valid Tailwind theming syntax such as `@source`, `@varaint`, `@utility`, and others, [#40](hhttps://github.com/torchbox/stylelint-config-torchbox/pull/40)).

## [3.0.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v2.0.3...v3.0.0) (2023-08-17)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ To get the most out of this config, it is assumed that projects have the followi
- [`media-feature-name-no-vendor-prefix`](https://stylelint.io/user-guide/rules/media-feature-name-no-vendor-prefix/)
- [`at-rule-no-vendor-prefix`](https://stylelint.io/user-guide/rules/at-rule-no-vendor-prefix/)
- [`declaration-property-value-disallowed-list`](https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/): `text-align: justify`
- [`scss/at-rule-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown/README.md): `true, ignoreAtRules: tailwind, apply, variants, responsive, screen, layer`
- [`scss/at-rule-no-unknown`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown/README.md): `true, ignoreAtRules: tailwind, apply, variants, responsive, screen, layer, config, theme, custom-variant, plugin, source, variant, utility, reference`
- [`scss/declaration-nested-properties`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties/README.md): `never`
- [`scss/selector-no-redundant-nesting-selector`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-redundant-nesting-selector/README.md)
- [`scss/percent-placeholder-pattern`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/percent-placeholder-pattern/README.md): `^do-not-use-placeholders$`
Expand Down
8 changes: 8 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ module.exports = {
'responsive',
'screen',
'layer',
'config',
'theme',
'custom-variant',
'plugin',
'source',
'variant',
'utility',
'reference',
],
},
],
Expand Down
8 changes: 8 additions & 0 deletions src/__snapshots__/semver.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ exports[`semver - should those tests break, consider releasing a new major versi
"responsive",
"screen",
"layer",
"config",
"theme",
"custom-variant",
"plugin",
"source",
"variant",
"utility",
"reference",
],
},
],
Expand Down