eslint-plugin-license-notice
v1.0.0
Published
eslint plugin to ensure license notice/header is included across your files
Downloads
4
Readme
eslint-plugin-license-notice
Ensure all your source files include the relevant license header notice
install it
- with npm
npm install eslint-plugin-license-notice --save-dev
- with yarn
yarn add eslint-plugin-license-notice -D -W
use it
- add the eslint plugin to your
.eslintrc.js
module.exports = {
...,
plugins: [
'license-notice',
],
rules: {
'license-notice/include': [
'error', {
license: 'Apache-2.0',
copyRightYear: '<year>',
copyRightName: '<name>'
}
]
}
}