- Add warnings for mixed specificity in nesting
- Add type annotations
- Allow nesting
@starting-style {}
- Migrate to
stylelint
v16.0.0
- Use
.cjs
files extensions.
- Fix
.foo { & + .bar {} }
becoming.foo { &:is( + .bar) {} }
, it will now resolve to.foo { &:is(& + .bar) {} }
- Fix
.foo { & + .bar {} }
becoming.foo { &:is( + .bar) {} }
, it will now resolve to.foo { &:is(* + .bar) {} }
- Add support for relative selectors by transforming
.foo { > img {} }
into.foo { &:has(> img) {} }
- Allow multiple
&
as long as the general pattern remains (e.g.&:is(.bar &)
) - Add
ignoreAtRules
plugin option so that non-standard things like@mixins
can be allowed. - Improve auto fixing.
- Fix plugin option
false
- Change rule name to
@mrhenry/stylelint-mrhenry-nesting
- Avoid unneeded
:is()
wrapping in auto fix
- Fix at-rule detection
- Fix files list
Initial release