eslint-plugin-backbone-radio-channels

0.0.7 • Public • Published

eslint-plugin-backbone-radio-channels

validate usage of backbone.radio channels

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-backbone-radio-channels:

$ npm install eslint-plugin-backbone-radio-channels --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-backbone-radio-channels globally.

Usage

Add backbone-radio-channels to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "backbone-radio-channels"
    ]
}

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

{
    "rules": {
        "backbone-radio-channels/channel-usage": "error"
    }
}

Supported Rules

  • channel-usage: restrict the usage of a channel to a module

Package Sidebar

Install

npm i eslint-plugin-backbone-radio-channels

Weekly Downloads

1

Version

0.0.7

License

ISC

Last publish

Collaborators

  • david.schkalee