1.0.3 • Published 4 years ago
stylelint-plugin-license-header v1.0.3
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-headerUsage
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
- plugin/license-header: check for the presence of a license header