Skip to content

Generates a `.oxlintrc.json` from a existing eslint v9 configuration

License

Notifications You must be signed in to change notification settings

oxc-project/oxlint-migrate

Repository files navigation

oxlint-migrate

test NPM Version NPM Downloads

Generates a .oxlintrc.json from a existing eslint flat config.

🚧 Still under development

Usage

pnpm install @oxlint/migrate
npx oxlint-migrate <optional-eslint-flat-config-path>

When no config file provided, the script searches for the default eslint config filenames in the current directory.

User Flow

  • Upgrade oxlint and oxlint-migrate to the same version.
  • Execute npx oxlint-migrate
  • (Optional): Disable supported rules via eslint-plugin-oxlint

Contributing

Generate rules

Generates the rules from installed oxlint version

pnpm generate
pnpm format

Vitest + Integration Test

pnpm vitest

Manual Testing

pnpm manual-test