next.js
0295842b - Update next-lint-to-eslint-cli to support `FlatCompat.config` (#85026)

Commit
121 days ago
Update next-lint-to-eslint-cli to support `FlatCompat.config` (#85026) ESLint `FlatCompat` can be used in two ways: ```js compat.extends('next/core-web-vitals', 'next/typescript') ``` ```js compat.config({ extends: ['next/core-web-vitals', 'next/typescript'], }) ``` Although using `.extends()` is recommended for migration, and the ESLint migration tool also uses that, it is possible to use `.config()`, so handle them as well for the migration. Confirmed on local apps as well.
Author
Parents
Loading