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:
Then configure the rules you want to use under the rules section.
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() |