@labset-eslint/eslint-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

eslint-plugin

Quality Gate Status npm version

A collection of eslint rules needed to ensure labset open-source packages are structured in a consistent way.

It comes with:

  • license-notice rule to enforce all source files include the relevant license header notice

install it

  • with npm
npm install @labset-eslint/eslint-plugin --save-dev
  • with yarn
yarn add @labset-eslint/eslint-plugin -D -W

use it

  • add the eslint plugin to your .eslintrc.js
module.exports = {
    ...,
    plugins: [
        '@labset-eslint/eslint-plugin',
    ],
    rules: {
        '@labset-eslint/license-notice': [
            'error', {
                license: 'Apache-2.0',
                copyRightYear: '<year>',
                copyRightName: '<name>'
            }
        ]
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @labset-eslint/eslint-plugin

Weekly Downloads

22

Version

1.3.0

License

Apache-2.0

Unpacked Size

33.9 kB

Total Files

13

Last publish

Collaborators

  • viqueen