A stylelint plugin to gather information about the usage of mixins and extends.
MIT License
This stylelint plugin is part of a (s)css analysis. It's used by the plugin stylelint-code-quality-config. Of course you can use it for your stylelint config, too. See instructions below.
npm install stylelint-mixin-extend-usage --save-dev
After that add this plugin to your stylelint plugins and include the rule:
"plugins": [
"stylelint-mixin-extend-usage"
],
"rules": {
"plugin/mixin-extend-usage": false
}
This plugin reports the following findings:
.example {
@extend %placeholder;
}
.example {
@extend placeholder2;
}
%placeholder {
color: #F00;
}
@mixin simple($w: 1px) {
width: $w;
}
.example {
@include simple($w: 5rem);
}