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

The `lodash/prefer-*` rules, notably `lodash/prefer-noop`, cause issues with Jest Mocks. For example: ```js import noop from 'lodash/noop' jest.mock('./widget', () => ({ __esModule: true, default: noop, })) ``` This causes the...

Fixes #221 The new rule in its current state in this branch only works with `map` as a proof of concept. The fix for this rule is unsafe as `_.map()`...

Hello, is it possible to accept both 'member' and 'method' for the rule `import-scope`, and if not, would you welcome a PR that lets you combine rules specifically on `lodash/import-scope`?...

`prefer-is-nil` currently supports suggesting `x === undefined || x === null` -> `isNil(x)`, but there is no equivalent for `x === undefined` -> `isUndefined(x)` and `x === null` -> `isNull(x)`.

with `"lodash/import-scope": ["error", "method"]`, named typescript type imports from lodash produce false positive errors: ``` import type { DebouncedFunc } from 'lodash' // error ```

[email protected] └── [email protected] When using an extend of "plugin:lodash/v3" the plugin will recommend `_.split` over `.split`, despite it not existing in lodash v3.

# `forbid-methods` This rule forbids the use of a configured set of lodash methods. ## Rule Details This rule takes one argument: * The first (required), which methods to forbid...

I have this function to produce `nPoints` of data on a curve: ```ts const generateData = (nPoints: number) => _.range(0, nPoints).map(i => { // Inverse tanh on (-0.9, +0.9); just...

`preferred-alias` rule is fixable described in Readme. but actually that looks like not fixable. > preferred-alias: Prefer using main method names instead of aliases. (fixable) Can I autofix really?