Skip to content

Commit 9bcc9b4

Browse files
authored
Add ignoreAtRules for tailwind 4 (#40)
1 parent bea363f commit 9bcc9b4

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7-
## Unreleased
7+
## [3.0.1](https://github.com/torchbox/stylelint-config-torchbox/compare/v3.0.0...v3.0.1) (2025-05-06)
8+
9+
### Features
10+
11+
- 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)).
812

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ To get the most out of this config, it is assumed that projects have the followi
129129
- [`media-feature-name-no-vendor-prefix`](https://stylelint.io/user-guide/rules/media-feature-name-no-vendor-prefix/)
130130
- [`at-rule-no-vendor-prefix`](https://stylelint.io/user-guide/rules/at-rule-no-vendor-prefix/)
131131
- [`declaration-property-value-disallowed-list`](https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/): `text-align: justify`
132-
- [`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`
132+
- [`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`
133133
- [`scss/declaration-nested-properties`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties/README.md): `never`
134134
- [`scss/selector-no-redundant-nesting-selector`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-redundant-nesting-selector/README.md)
135135
- [`scss/percent-placeholder-pattern`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/percent-placeholder-pattern/README.md): `^do-not-use-placeholders$`

config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ module.exports = {
6060
'responsive',
6161
'screen',
6262
'layer',
63+
'config',
64+
'theme',
65+
'custom-variant',
66+
'plugin',
67+
'source',
68+
'variant',
69+
'utility',
70+
'reference',
6371
],
6472
},
6573
],

src/__snapshots__/semver.test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@ exports[`semver - should those tests break, consider releasing a new major versi
290290
"responsive",
291291
"screen",
292292
"layer",
293+
"config",
294+
"theme",
295+
"custom-variant",
296+
"plugin",
297+
"source",
298+
"variant",
299+
"utility",
300+
"reference",
293301
],
294302
},
295303
],

0 commit comments

Comments
 (0)