eslint-plugin-bo-tools

0.0.1 • Public • Published

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()

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i eslint-plugin-bo-tools

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • olore