1.0.3 • Published 2 years ago

stylelint-plugin-license-header v1.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
2 years ago

stylelint-plugin-license-header

A plugin to validate the presence of a license header in style files.

Installation

npm install --save-dev stylelint-plugin-license-header

Usage

Add it to the plugins section of your .stylelintrc configuration file:

{
  "plugins": [
    "stylelint-plugin-license-header"
  ]
}

Then add and configure the rule under the rules section:

{
  "rules": {
    "plugin/license-header": [true, { "license": "./license-header.js" }]
  }
}

To auto-fix your style files:

stylelint --fix .

Supported Rules

License

MIT