0.0.0 • Published 2 years ago

eslint-plugin-limit-subscribes v0.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-limit-subscribes

This plugin will warn you when you have 2 or plus subscribes in the same angular component

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-limit-subscribes:

npm install eslint-plugin-limit-subscribes --save-dev

Usage

Add limit-subscribes to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "limit-subscribes"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "limit-subscribes/rule-name": 2
    }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

0.0.0

2 years ago