Skip to content

Command next lint does not generate .eslintrc.json on App Router #55102

@devjiwonchoi

Description

@devjiwonchoi

Link to the code that reproduces this issue or a replay of the bug

CodeSandBox Reproduction

To Reproduce

  1. Run pnpm next lint
  2. Choose <Strict | Base> option from the suggestions
  3. Run pnpm next lint again

Current vs. Expected behavior

Current

It does not generate .eslintrc.json, DX as to endlessly repeat "next lint".

Expected

Generate the proper .eslintrc.json.

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
Binaries:
  Node: 16.17.0
  npm: 8.15.0
  Yarn: 1.22.19
  pnpm: 7.1.0
Relevant Packages:
  next: 13.4.20-canary.19
  eslint-config-next: 13.4.20-canary.19
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

CLI (create-next-app), ESLint (eslint-config-next)

Additional context

This issue extends #55094

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.create-next-appRelated to our CLI tool for quickly starting a new Next.js application.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions