eslint-plugin-callback-function

1.3.2 • Public • Published

eslint-plugin-callback-function

Travis Status Shippable Status

This currently have only one rule which enforces consistent placement of callback functions. rule-on-newline-code

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-callback-function:

$ npm install eslint-plugin-callback-function --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-callback-function globally.

Usage

Add callback-function to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "callback-function"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "callback-function/rule-name": 2
    }
}

Supported Rules

/eslint-plugin-callback-function/

    Package Sidebar

    Install

    npm i eslint-plugin-callback-function

    Weekly Downloads

    5

    Version

    1.3.2

    License

    MIT

    Last publish

    Collaborators

    • harryi3t