Internal ESLint plugin for Routable
You'll first need to install ESLint:
$ npm i -D eslint
Next, install eslint-plugin-routable
:
$ npm i -D eslint-plugin-routable
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-routable
globally.
Add routable
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"routable"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"routable/rule-name": 2
}
}
exports-newlines