0.1.0 • Published 5 years ago
stylelint-no-nested-media v0.1.0
stylelint-no-nested-media
Disallow nested @media rules
For example, the following patterns are considered violations:
@media (max-width: 600px) {
@media (min-width: 500px) { }
}The following patterns are not considered violations:
@media (min-width: 500px) and (max-width: 600px) { }Installation
- If you haven't, install stylelint:
npm install stylelint --save-dev- Install
stylelint-no-nested-media:
npm install stylelint-no-nested-media --save-devUsage
Add stylelint-no-nested-media to your stylelint config plugins array, then add rules you need to the rules list. All rules from stylelint-no-nested-media need to be namespaced with pitcher.
{
"plugins": [
"stylelint-no-nested-media"
],
"rules": {
"pitcher/no-nested-media": true
}
}0.1.0
5 years ago