Skip to content

Repository files navigation

Official ESLint codemods to help users adopt new features and handle breaking changes with ease.

Community contributions are welcome and appreciated! Check open issues for codemods to build, or open a new one if something’s missing. See the contribution guide for details.

Running codemods

Caution

Codemods modify code! Run them only on Git-tracked files, and commit or stash changes first.

From the registry

Recommended for the best UX. This downloads the package from the Registry.

npx codemod <codemod-name>

For example:

npx codemod @eslint/v8-to-v9-config

From source

npx codemod workflow run -w ./codemods/v9/config-file/workflow.yaml

Note

By default, codemods run in the current folder. Add -t /target/path to change it.

See the Codemod docs for all CLI commands and options.

License

MIT

Sponsors

The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. Become a Sponsor to get your logo on our READMEs and website.

Platinum Sponsors

Automattic

Gold Sponsors

Qlty SoftwareShopifyCodeRabbit

Silver Sponsors

ViteLiftoffStackBlitz

Bronze Sponsors

CybozuSAPapuesdeportivas.esIcons8DiscordGitBookCitadel AI

Technology Sponsors

Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.

NetlifyAlgolia1Password

About

Official ESLint codemods to help users adopt new features and handle breaking changes with ease.

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Sponsor this project

Contributors

Languages