-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
"lint": "next lint" never start #55094
Comments
I'm having the same problem just now |
Note there is no If I add one manually, running |
@FrancescoSaverioZuppichini @IsabellaRey Please provide a repro so as to investigate. |
@IsabellaRey If that is the case, add {
"extends": "next/core-web-vitals"
} |
Repro steps are as described by @FrancescoSaverioZuppichini:
Expected: Actual: @devjiwonchoi thanks - I'll be adding a config file manually as a temporary workaround, but please note that this is not in line with the docs: https://nextjs.org/docs/app/building-your-application/configuring/eslint |
I've checked that |
@devjiwonchoi thanks for looking into this. I should add in my case I actually started with a Nextjs template which does not include eslint to start with: https://github.com/vercel/next.js/tree/canary/examples/with-redux
|
Fixing this issue will resolve that also, appreciate you for sharing. |
In order to make this issue clear, I'll port this issue. |
…n App Router (#55104) This PR fixes `.eslintrc.json` not being created after the user runs `next lint` and selects an option of `Strict` or `Base`. The reason is that the lint check was looking for `pages` and `src/pages` only. Added `app` and `src/app` to be checked also. Fixes: #55094 Fixes: #55102 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site>
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. |
Link to the code that reproduces this issue or a replay of the bug
https://github.com/vercel/next.js
To Reproduce
So I have this script in package.json from the default nextjs installation (using create-next-app)
if I do pnpm lint it does everysingle time and it never run the lint
Current vs. Expected behavior
should actually run the linting
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Thu Jun 8 22:21:34 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8112 Binaries: Node: 20.3.0 npm: 9.6.7 Yarn: N/A pnpm: 8.6.2 Relevant Packages: next: 13.4.19 eslint-config-next: 13.4.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)
Not sure
Additional context
No response
The text was updated successfully, but these errors were encountered: