1.0.4 • Published 4 years ago

@webdevstudios/stylelint-no-debug v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

WebDevStudios Branding

@webdevstudios/stylelint-no-debug

A stylelint custom rule to catch usage of @debug statements.

This rule will cause stylelint to warn you whenever @debug is used.

Installation

npm install @webdevstudios/stylelint-no-debug

This plugin is compatible with v5.0.1+.

Details

a { /* Not OK */
   @debug $blue;
   color: $blue;
}

a { /* OK */
   color: $blue;
}

Usage

Add "@webdevstudios/stylelint-no-debug" to your stylelint config plugins array, then add @webdevstudios/stylelint-no-debug/no-debug to your rules, set to true.

As follows:

{
  "plugins": [
    "@webdevstudios/stylelint-no-debug"
  ],
  "rules": {
    "no-debug": true
  }
};

Changelog