eslint-plugin-backbone-radio-channels
v0.0.7
Published
validate usage of backbone.radio channels
Downloads
2
Maintainers
Readme
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