Skip to content

TheodoreGC/stylelint-plugin-license-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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