Skip to content

Commit

Permalink
next-lint: Use ESLint v9 by default (#71371)
Browse files Browse the repository at this point in the history
### Why?

Since ESLint v9 was unblocked, we no longer need to pin installing v8 when running `next lint` for the first time.
  • Loading branch information
devjiwonchoi authored Oct 22, 2024
1 parent 1970f9f commit 2490439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/lib/eslint/runLintCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ export async function runLintCheck(
if (deps.missing.length > 0) {
deps.missing.forEach((dep) => {
if (dep.pkg === 'eslint') {
// eslint v9 has breaking changes, so lock to 8 until dependency plugins fully support v9.
dep.pkg = 'eslint@^8'
// pin to v9 to avoid breaking changes
dep.pkg = 'eslint@^9'
}
})

Expand Down

0 comments on commit 2490439

Please sign in to comment.