eslint-plugin-prefer-bind-operator
v0.0.4
Published
Suggest using the bind operator over Function methods or Reflect.apply.
Downloads
8
Maintainers
Readme
eslint-plugin-prefer-bind-operator
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
}
}