A collection of jscodeshift-based codemods for automating ESLint rule upgrades across major versions. Current stable version is 3.0.0, released June 2024. Active development with recent transforms for ESLint v9 migration. Key differentiator: provides automated transforms for rule format changes (new-rule-format, v9-rule-migration) that would otherwise require manual refactoring. Requires Node >=20 and jscodeshift as a peer dependency. Alternative to manual upgrading or using ESLint's built-in migration tools.
npm install eslint-transformsVerified import paths — ran on the pinned version, not inferred.
Install the package as a dev dependency and run the v9-rule-migration transform on a rules directory, then new-rule-format on legacy rules.
Upgrade Node.js to v20 or higher.
Use ESM imports or ensure compatibility with ESM modules.
Convert ES6 modules to CommonJS before running the transform, or manually update the rule.
Commit changes or use version control before running transforms. Use --dry flag if available (check docs).
Upgrade to Node >=12 to use v2+, or stay on v1.x if stuck on older Node.
Run `npm install eslint-transforms --save-dev`. If using ESM, ensure package.json has type: module or use .mjs extension.
Switch to ESM imports: `import eslintTransforms from 'eslint-transforms'` or convert your script to ESM.
Use CLI: `npx eslint-transforms v9-rule-migration <path>`. Or import named transform functions.
Upgrade Node to v20 or higher. If unable, use v2.x with Node 12+ by pinning version: `npm install eslint-transforms@2`.
No dependency data recorded yet.