stylelint-plugin-license-header
v1.0.3
Published
A plugin to validate the presence of/add license header in style files.
Downloads
6,702
Readme
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
plugin/license-header
: check for the presence of a license header