stylelint-at-rule-import-no-underscore
v1.0.0
Published
A custom stylelint rule to catch usage of `@import` statement files beginning with underscores.
Downloads
7
Maintainers
Readme
stylelint-at-rule-import-no-underscore
A stylelint custom rule to catch usage of @import
statement files beginning with underscores.
This rule will cause stylelint to warn you whenever @import
is used with an underscore (e.g. _variables
vs. variables
).
Installation
npm install stylelint-at-rule-import-no-underscore
This plugin is compatible with v5.0.1+.
Details
@import('_variables); /* Not OK */
@import('path/_variables); /* Not OK */
@import('variables); /* OK */
@import('path/variables); /* OK */
Usage
Add "stylelint-at-rule-import-no-underscore"
to your stylelint config plugins
array, then add at-rule-import-no-underscore
to your rules, set to true.
As follows:
{
"plugins": [
"stylelint-at-rule-import-no-underscore"
],
"rules": {
"at-rule-import-no-underscore": [true|false]
}
};