Registry / testing / eslint-plugin-ramda

eslint-plugin-ramda

JSON →
library2.5.1jsnpmunverified

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-ramda
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-RAMD
E
eslint-plugin-ramda
testingjavascriptv2.5.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default import
import plugin from 'eslint-plugin-ramda'
const plugin = require('eslint-plugin-ramda')
Works with both CJS and ESM, but ESLint config files typically use CommonJS.
rules
import { rules } from 'eslint-plugin-ramda'
Direct access to rules object for custom configurations.
configs
import { configs } from 'eslint-plugin-ramda'
Access recommended or other predefined configs.

Shows how to install and configure eslint-plugin-ramda in an ESLint config file with three example rules.

// Install: npm install --save-dev eslint-plugin-ramda // In .eslintrc.js: module.exports = { plugins: ['ramda'], rules: { 'ramda/always-simplification': 'warn', 'ramda/compose-pipe-style': ['error', 'pipe'], 'ramda/prefer-complement': 'warn' } };
Debug
Known issues
breakingv2.0.0 merged two plugin projects, dropping v1 rules except prefer-reject.
fix
Update to v2.5.1 and adapt configs to new rule names and structure.
affects: >=1.0.0 <2.0.0
deprecatedv3.0.0-beta deprecates Node.js <=6; final v3 may drop more versions.
fix
Use Node >=10 for compatibility with upcoming releases.
affects: >=3.0.0-beta
gotchaPlugin assumes all Ramda calls use the 'R' variable; custom namespace not supported.
fix
Ensure Ramda is imported as 'R' or use options if available in future versions.
affects: >=2.0.0
gotchaRules may produce false positives when Ramda functions are shadowed or reassigned.
fix
Avoid shadowing R.xxx in scopes where linting is active.
affects: >=2.0.0
deprecatedRule 'prefer-reject' from v1 was dropped in v2; use 'ramda/prefer-complement' instead.
fix
Replace 'prefer-reject' with 'prefer-complement' in ESLint config.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'ramda' declared in '.eslintrc': Cannot find module 'eslint-plugin-ramda'
eslint-plugin-ramda not installed or not in node_modules.
fix
Run `npm install --save-dev eslint-plugin-ramda` or `yarn add --dev eslint-plugin-ramda`.
Definition for rule 'ramda/prefer-complement' was not found
Plugin installed but rule name is incorrect or plugin not loaded.
fix
Check that the rule name is exactly 'ramda/prefer-complement' and plugin is listed in 'plugins' array.
TypeError: Cannot read property 'some' of undefined
ESLint version incompatible or plugin not compatible with ESLint flat config.
fix
Ensure ESLint version >=4, and use legacy config format if using ESLint >=9 flat config.
Upgrade
Version history
2.5.1latest on npm
Audit
Dependencies
ramdaoptionalThe plugin inspects Ramda calls; it expects Ramda as a dependency of the project being linted, though not as a direct dependency of the plugin itself.
eslintrequiredRequired peer dependency; the plugin extends ESLint.
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-ramda — npm install eslint-plugin-ramda · libregistry