Limit the count of a lines.
- If you haven't, install [stylelint]:
npm install stylelint --save-dev
- Install
stylelint-max-lines
:
npm install stylelint-max-lines --save-dev
Add stylelint-max-lines
to your stylelint config plugins
array, then add rules you need to the rules list. All rules from stylelint-max-lines need to be namespaced with pitcher
.
{
"plugins": [
"stylelint-max-lines"
],
"rules": {
"pitcher/max-lines": 300
}
}