A plugin to validate the presence of a license header in style files.
npm install --save-dev stylelint-plugin-license-header
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 .
plugin/license-header
: check for the presence of a license header