stylelint-cssnano-ignore
v0.1.0 stylelint stylelint-plugin cssnano
stylelint-cssnano-ignore
Stylelint plugin for using cssnano-ignore-plugin
without any issues
Install
npm install stylelint stylelint-cssnano-ignore --save-dev
Usage
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 overselector
oratRules
i.e not overdeclaration
type (eg 'color:red')
npm i stylelint-cssnano-ignore
Metadata
- MIT
- Whatever
- anikethsaha
- released 2/17/2020