eslint-plugin-license-notice
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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>'
            }
        ]
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-license-notice

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

25 kB

Total Files

10

Last publish

Collaborators

  • viqueen