Stylelint plugin with custom rules.
npm install --save-dev @funboxteam/stylelint-rules
Obviously Stylelint should be installed too.
- declarations-before-nesting — forces block rules be placed above the nested blocks.
- no-transition-all — prevents use
all
value fortransition
&transition-property
props. - rgba-hex-color-only — prevents use
rgba
function with non-hex color as a first argument. - selector-max-type — limit the number of type selectors in a selector (compatible with @funboxteam/scss-vars-loader).