1.0.1 • Published 8 years ago
eslint-plugin-prefer-arrow-to-bind v1.0.1
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-devNext, install eslint-plugin-prefer-arrow-to-bind:
$ npm install eslint-plugin-prefer-arrow-to-bind --save-devNote: 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