Skip to content

Rules to validate the presence of license headers in source files.

License

Notifications You must be signed in to change notification settings

jveldhuijzen/eslint-plugin-license-header

 
 

Repository files navigation

eslint-plugin-license-header

Build Status Code coverage

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

MIT

About

Rules to validate the presence of license headers in source files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%