0.0.4 • Published 4 years ago
eslint-plugin-regexp-header v0.0.4
eslint-plugin-regexp-header
Checks the header of a source file against a header that contains a regular expression for each line of the source header
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-regexp-header:
$ npm install eslint-plugin-regexp-header --save-devUsage
Add regexp-header to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"regexp-header"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"regexp-header/regexp-header": [
2,
{
"headerFile": "./resources/copyright.txt"
}
]
}
}Supported Rules
- Fill in provided rules here