0.1.0 • Published 6 years ago
stylelint-cssnano-ignore v0.1.0
stylelint-cssnano-ignore
Stylelint plugin for using cssnano-ignore-plugin without any issues
Install
npm install stylelint stylelint-cssnano-ignore --save-devUsage
Add this config to your .stylelintrc or stylelint config inside package.json:
{
"plugins": ["stylelint-cssnano-ignore"],
"rules": {
"cssnano-ignore-plugin/no-wrong-line-comment": true,
},
}Detail
/* cssnano-ignore-line */
ul li{ color : red }You will get errors as
/* cssnano-ignore-line */
/** ^^^^^^
*"cssnano-ignore-line comment written for wrong node type 'rule' i.e 'ul li' at line 2:3 (cssnano-ignore-plugin/no-wrong-line-comment)" */Rules
no-wrong-line-comment: to throw error whenever the comment/* cssnano-ignore-line */is written overselectororatRulesi.e not overdeclarationtype (eg 'color:red')
0.1.0
6 years ago