eslint-plugin-prefer-arrow-to-bind

1.0.1 • Public • Published

eslint-plugin-prefer-arrow-to-bind

Enforces use of arrow function syntax, instead of using bindings in the ctor

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-prefer-arrow-to-bind:

$ npm install eslint-plugin-prefer-arrow-to-bind --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-prefer-arrow-to-bind globally.

Usage

Add prefer-arrow-to-bind to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "prefer-arrow-to-bind"
    ]
}

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

{
    "rules": {
        "prefer-arrow-to-bind/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

/eslint-plugin-prefer-arrow-to-bind/

    Package Sidebar

    Install

    npm i eslint-plugin-prefer-arrow-to-bind

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.56 kB

    Total Files

    8

    Last publish

    Collaborators

    • georgegillams