Skip to content

iexitdev/eslint-babel-migrate

eslint-babel-migrate

Migration helpers for moving ESLint configs from babel-eslint to @babel/eslint-parser.

babel-eslint is deprecated and no longer receives updates. This package updates plain ESLint config objects, reports what changed, and generates install hints for the maintained parser.

Install

npm install eslint-babel-migrate

Usage

import { migrateBabelEslintConfig } from "eslint-babel-migrate";

const result = migrateBabelEslintConfig({
  parser: "babel-eslint",
  parserOptions: {
    sourceType: "module"
  }
});

console.log(result.config);
console.log(result.changes);

API

migrateBabelEslintConfig(config, options?)

Returns { config, changed, changes, warnings, install }.

isBabelEslintConfig(config)

Checks whether a config uses babel-eslint.

recommendedInstall(options?)

Returns the package manager command for the maintained parser.

Migration Position

eslint-babel-migrate is an independent alternative or migration helper for projects moving away from babel-eslint. It is not affiliated with the original package maintainers or project.

For release context, see the local migration guide, examples, compatibility notes, source metadata, and adoption plan.

About

Migration helpers for replacing babel-eslint with @babel/eslint-parser.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors