Package Exports
- eslint-plugin-license-header
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-license-header) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-license-header
Rules to validate the presence of license headers in source files.
Installation
npm install eslint-plugin-license-header --save-dev
Usage
Add license-header
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"license-header"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"license-header/header": [ "error", "./resources/license-header.js" ]
}
}
You may auto-fix your source files, adding or updating a given license header:
eslint --fix .
Supported Rules
license-header/header
: checks a source file for the presence of a license header