Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
devjiwonchoi opened this issue Sep 7, 2023 · 1 comment · Fixed by #55104
Closed
1 task done

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

devjiwonchoi opened this issue Sep 7, 2023 · 1 comment · Fixed by #55104
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application. locked

Comments

@devjiwonchoi
Copy link
Member

devjiwonchoi commented Sep 7, 2023

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

@devjiwonchoi devjiwonchoi added the bug Issue was opened via the bug report template. label Sep 7, 2023
@github-actions github-actions bot added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Sep 7, 2023
@devjiwonchoi devjiwonchoi changed the title "next lint" does not generate .eslintrc.json if missing Command next lint does not generate .eslintrc.json if missing Sep 7, 2023
@devjiwonchoi devjiwonchoi changed the title Command next lint does not generate .eslintrc.json if missing Command next lint does not generate .eslintrc.json Sep 7, 2023
@devjiwonchoi devjiwonchoi changed the title Command next lint does not generate .eslintrc.json Command next lint does not generate .eslintrc.json on App Router Sep 7, 2023
@ijjk ijjk closed this as completed in 4c53843 Feb 5, 2024
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application. locked
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant