An ESLint plugin providing rules specifically for lodash/fp, the functional programming variant of Lodash. The current stable version is 2.2.0-alpha1 (pre-release) and targets ESLint >=3. It helps enforce FP best practices such as currying, data-last argument order, and composition, and prevents usage of impure or chain-based patterns. It offers over 20 rules, including `use-fp` to enforce lodash/fp over lodash, `no-chain` to forbid `_.chain`, and `prefer-constant` to replace arrow functions returning literals. It distinguishes itself from general Lodash linting by focusing on the FP paradigm and catching subtle issues like extraneous arguments and unused results.
npm install eslint-plugin-lodash-fpVerified import paths — ran on the pinned version, not inferred.
Basic setup and a rule violation example: shows installation, configuration in .eslintrc.json, and how no-chain catches _.chain usage.
Review rule documentation and consider disabling if too noisy.
Use separate ESLint configurations per file or scope: one for lodash/fp files and one for lodash files.
Disable the rule or use the 'exceptions' option if available (see docs).
Update configurations to explicitly set severity for 'no-chain' if relying on old defaults.
npm install --save-dev eslint-plugin-lodash-fp
Add 'lodash-fp' to plugins in .eslintrc and ensure ESLint >=3.
No dependency data recorded yet.