eslint-plugin-lodash icon indicating copy to clipboard operation
eslint-plugin-lodash copied to clipboard

Split `prefer-lodash-method`

Open ganimomer opened this issue 8 years ago • 0 comments

First suggested in #136. The prefer-lodash-method rule is overly complex and covers too many options. It should be split into the following rules:

  • lodash-collection-method for collection methods (some, find, etc).
  • lodash-string-method for string methods (replace, padStart, split, etc).
  • lodash-static-method for Array.isArray(), Object.assign(), Object.keys(), etc. The rules should have options for always and never, and a second options object for ignoreObjects and ignoreMethods.

ganimomer avatar Mar 15 '17 11:03 ganimomer