ESLint plugin providing lint rules for Ramda, a functional programming library. v2.5.1 is the latest stable release (2020-02-19), with v3.0.0 in beta. It helps enforce Ramda idioms, suggest simplifications, and prevent non-idiomatic usage. Unlike generic linting, it is Ramda-specific, with rules like prefer-complement, compose-pipe-style, and map-simplification. Released under the ramda GitHub organization, it follows semantic versioning.
npm install eslint-plugin-ramdaVerified import paths — ran on the pinned version, not inferred.
Shows how to install and configure eslint-plugin-ramda in an ESLint config file with three example rules.
Update to v2.5.1 and adapt configs to new rule names and structure.
Use Node >=10 for compatibility with upcoming releases.
Ensure Ramda is imported as 'R' or use options if available in future versions.
Avoid shadowing R.xxx in scopes where linting is active.
Replace 'prefer-reject' with 'prefer-complement' in ESLint config.
Run `npm install --save-dev eslint-plugin-ramda` or `yarn add --dev eslint-plugin-ramda`.
Check that the rule name is exactly 'ramda/prefer-complement' and plugin is listed in 'plugins' array.
Ensure ESLint version >=4, and use legacy config format if using ESLint >=9 flat config.