0.0.4 • Published 8 years ago

eslint-plugin-prefer-bind-operator v0.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

eslint-plugin-prefer-bind-operator Build Status

Suggest using the bind operator over Function methods or Reflect.apply.

Warns for the following:

// with at least one argument
var foo = bar.bind(/* ... */);
foo.call(/* ... */);
foo.apply(/* ... */);
Reflect.apply(foo);

Usage

npm i --save-dev eslint-plugin-prefer-bind-operator

{
  "plugins": [
    "prefer-bind-operator"
  ],
  "rules": {
    "prefer-bind-operator/prefer-bind-operator": 2
  }
}