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

ESLint rules for lodash

Results 64 eslint-plugin-lodash issues
Sort by recently updated
recently updated
newest added

Referring to #189 The issue was fixed there for `sortBy`, but not for `orderBy`.

The rule currently warns for methods defined on classes that return constant values, however this isn't the ideal behavior because refactoring those methods to use lodash would produce some weird...

Hi. On our project we would like to limit the use of lodash JS functions and use the native `.forEach` / `.map` / `.filter` as much as possible. I totally...

eslint v6.4.0 eslint-plugin-lodash v6.0.0 `'_' is not defined.` _ is not defined is being produced as an error, seemingly regardless of the settings assigned. I am using `plugin:lodash/v3`, which defines...

`prefer-compact` gives false-positives for objects. `_.filter` allows collections (both arrays and objects), while `_.compact` only arrays... by the way, how is `_.compact(arr)` better than `_.filter(collection)`? They both do the same,...

Suggest replacing `_.slice(arr, 0, 5)` with `_.take(arr, 5)`.

Since `difference` and `without` seem to be the same thing, except that the former accepts an array and the latter accepts variables, then create a new rule to prefer only...

#### Description This PR fixes one or more vulnerable packages in the `npm` dependencies of this project. See the [Snyk test report](https://app.snyk.io/org/wix/test/github/ac53da42-7f7b-41a5-b469-e28dc1100472/master..snyk-fix-66ce1547bf1c1c26aafadca76ca263f9) for more details. #### Snyk Project: [wix/eslint-plugin-lodash:package.json](https://app.snyk.io/org/wix/project/ac53da42-7f7b-41a5-b469-e28dc1100472) ####...

Hi, Thank you for this great plugin. Configuration: `"lodash/path-style": ["error", "as-needed"]` consider the following code: ```javascript const obj = { a: { "b.c": { d: 3 } } }; _.get(obj,...