@eslint/migrate-config weekly downloads statistics
By eslint (7 listings) · npm · ESLint plugins
Configuration migration for ESLint
@eslint/migrate-config has 6,894 recorded weekly downloads on npm, ranking #1057 of 2,391 tracked listings.
About @eslint/migrate-config
ESLint Configuration Migrator
Overview
This package aids in the migration of the legacy ESLint configuration file format (.eslintrc.) to the new ESLint configuration file format (eslint.config.js).
Note: The generated configuration file isn't guaranteed to work in all cases, but it should get you a lot closer to a working configuration file than manually trying to migrate.
Limitations
This tool currently works well for the following config file formats:
.eslintrc.eslintrc.json.eslintrc.yml
If you are using a JavaScript configuration file (.eslintrc.js, .eslintrc.cjs, .eslintrc.mjs), this tool currently is only capable of migrating the evaluated configuration. That means any logic you may have inside of the file will be lost. If your configuration file is mostly static, then you'll get a good result; if your configuration file is more complex (using functions, calculating paths, etc.) then this tool will not provide an equivalent configuration file.
Usage
You can run this package on the command line without installing it first by using npx or a similar tool:
npx @eslint/migrate-config .eslintrc.json
# or
bunx @eslint/migrate-config .eslintrc.json
The tool will automatically find your .eslintignore file in the same directory and migrate that into your new configuration file.
If you receive any npm errors while running using npx, install the package manually first:
npm i @eslint/migrate-config
npx @eslint/migrate-config .eslintrc.json
CommonJS Output
By default, this tool generates an ESM file (.mjs extension). If you'd like to generate a CommonJS file instead, pass the --commonjs flag:
npx @eslint/migrate-config .eslintrc.json --commonjs
# or
bunx @eslint/migrate-config .eslintrc.json --commonjs
Including a .gitignore file
If you are currently using --ignore-path .gitignore on the CLI, you'll need to read the .gitignore file into your config file. The migration can handle this for you by passing the --gitignore flag:
npx @eslint/migrate-config .eslintrc.json --gitignore
# or
bunx @eslint/migrate-config .eslintrc.json --gitignore
Targeting a specific ESLint version
By default, this tool targets the latest ESLint version available (v10). You can target v9 by passing the --target-version option:
npx @eslint/migrate-config .eslintrc.json --target-version 9
# or
bunx @eslint/migrate-config .eslintrc.json --target-version 9
Followup Steps
Once you have completed the migration, you may need to manually modify the resulting config file.
Upgrade Plugins and Double-Check Compatibility
For any plugins used in your configuration file, make sure to upgrade to the latest version. Many plugins are creating their v9-compatible versions and this tool may be out-of-date in relation to which plugins fully support v9.
After upgrading, double-check if the plugin still needs any of the compatibility utilities that were autogenerated as part of the migration.
--ext
If you are using --ext on the command line, such as:
npx eslint --ext .ts .
You'll need to remove the --ext from the command line and add an equivalent object into your configuration file. For example, --ext .ts requires an object like this in your configuration file:
export default [
{
files: ["**/*.ts"],
},
// the rest of your config
];
This tells ESLint to search for all files ending with .ts when a directory is passed on the command line. You can choose to add additional properties to this object if you'd like, but it's not required.
License
Apache 2.0
<!-- NOTE: This section is autogenerated. Do not manually edit.--> <!--sponsorsstart-->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.…
Description from the npm listing.
- eslint
- compatibility
- configuration
- config
- eslintplugin
- eslint-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm ESLint plugins plugins
All 20 @eslint/migrate-config alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@eslint/migrate-config. First seen Oct 21, 2026; last successful collection Oct 21, 2026. See the methodology.