eslint-plugin-lodash
eslint-plugin-lodash copied to clipboard
ESLint rules for lodash
Hi. On an application that was using both lodash & UnderscoreJS (sigh) I switched to only using lodash. Then I realized I kept some pieces of code that where using...
My code ``` ... const getCookie = name => { const nameEQ = name + '='; const ca = _.split(document.cookie, ';'); let result = null; _.each(ca, c => { const...
shouldn't https://github.com/wix/eslint-plugin-lodash/blob/master/src/rules/prefer-immutable-method.js#L18 say that `_.reject` is preferred over `_.remove` ? otherwise using _.filter also requires negating the predicate
Currently https://github.com/jfmengels/eslint-plugin-lodash-fp is down on maintainers, and often needs updating with bugfixes etc from https://github.com/wix/eslint-plugin-lodash/ It would be great to merge this projects together into one lerna monorepo.
Adding support no-deprecated rule to make migration to newer version easier
I've noticed that I can write `arr.concat(...)` without eslint to complain, indicating that `_.concat(arr, ...)` would be preferred. Is this intentional?
Hi Getting this error: ``` TypeError: Cannot read property 'getDeclaredVariables' of undefined at isOnlyUsedForObject (/path/node_modules/eslint-plugin-lodash/lib/rules/prefer-invoke-map.js:31:51) at isFunctionMethodCallOfParam (/path/node_modules/eslint-plugin-lodash/lib/rules/prefer-invoke-map.js:39:114) ``` For this code (based on SourceLocation in func) : ``` return...
In many places there are usages of _.isFunction before running a certain function. _.invoke does exactly that. The rule will prefer using _.invoke instead of checking if something is a...
I'm currently migrating from lodash 3 to lodash 4. I looked into this plugin to help me identify the parts of my code where I'm using lodash methods that no...
Since the introduction of the rule `no-extra-args`, the Lodash v4 version of the rule is redundant. Also, while the v4 of the rule prevents possible errors, the v3 version is...