C

biome/migrate-rules

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod replaces configuration files for ESLint with corresponding biome.json for all the found rules. It also replaces Prettier configuration.

Note:

This codemod accepts manual user input, which is required to migrate away from eslint. In order to run it properly, run the following command:

bash

It's important that you pass these rules to the codemod, because our codemods are limited in access for security purposes and have no access to most node features that could maliciously affect your system.

This codemod requires internet connection.

Example

package.json

Before

json

After

json

.eslintrc.json

Before

json

After

Removed and replaced with corresponding rules in biome.json

.prettierrc

Before

json

After

Removed and replaced with corresponding values in biome.json

biome.json

json

Ready to contribute?

Build your own codemod and share it with the community.