stylelint-at-rule-import-no-underscore

1.0.0 • Public • Published

stylelint-at-rule-import-no-underscore

Build Status

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]
  }
};

Package Sidebar

Install

npm i stylelint-at-rule-import-no-underscore

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • timothyneiljohnson