0.0.1 • Published 10 years ago
eslint-plugin-bo-tools v0.0.1
eslint-plugin-bo-tools
ESLint plugin for rules I care about
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-bo-tools
:
$ npm install eslint-plugin-bo-tools --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-bo-tools
globally.
Usage
Add bo-tools
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"bo-tools"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"bo-tools/jasmine-done": 2,
"bo-tools/then-catch": 2,
"bo-tools/no-new-date": 2
}
}
Supported Rules
Name | Description |
---|---|
jasmine-done | Require call to done() if using promises in specs |
no-new-date | Prefer moment() over new Date() |
then-catch | Prefer then()/catch() over passing 2 functions to a then() |
0.0.1
10 years ago