Closed hudochenkov closed 7 years ago
Config:
{ type: 'rule', selector: '/^&:\w/' }
selector is RegEx for selector matching.
selector
It will match:
a { &:hover { color: blue; } &:focus { color: red; } }
Won't match:
a { &::before { content: "b"; } &::after { content: "a"; } }
Proposed https://github.com/stylelint/stylelint/issues/1500#issuecomment-230105435
Discussed in #3. Need extend this config by hasBlock property to support mixins such as .my-mixin(); less mixin.
.my-mixin();
Created separate issue for Less mixins #9
Done in https://github.com/hudochenkov/stylelint-order/commit/37e6912de2d58c0ecd087df1bba8a64949871e7b
Config:
selector
is RegEx for selector matching.It will match:
Won't match:
Proposed https://github.com/stylelint/stylelint/issues/1500#issuecomment-230105435