-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Docs: Creating new Next.js project with TypeScript does not add TypeScript lint rules #69184
Comments
This comment has been minimized.
This comment has been minimized.
hello @LuckyT89 I also have this problem. Worst tho: running the command
ERROR:
|
It would be great to get this working as documented. I'm trying to enable the |
It appears that the |
@flavio-dev What version of |
Same issue here. I'm using next version: |
@CesarCarrillo91 Can you confirm if this is working for you on the latest canary? |
@samcx - not working for me on |
It looks like |
@apomortsev this worked for me, thank you. |
…slint for typescript has some issue - vercel/next.js#69184)
@kleekich21 I see the commit you made for this issue. Hopefully this will make it so that when you create a new project using |
@apomortsev Thank you for the clarification. The PR that In the meantime, I will be closing this issue! Please be on the look for the new minor release → https://github.com/vercel/next.js/releases. |
thanks |
@samcx I tried creating a new app today with |
What is the documentation issue?
On the ESLint page of the documentation there is a section named TypeScript. It says that when creating a new project set up to use TypeScript, it should add TypeScript-specific lint rules and the content of the .eslintrc.json file should look like this:
However, when I create a new Next.js project by running
npx create-next-app@latest
and select the option to use TypeScript in the prompts that follow, it does not add the TypeScript lint rules and the .eslintrc.json file looks like this:Is there any context that might help us understand?
It seems these lint rules are not being added when creating a new project with TypeScript. I am not sure if this is the intended behavior and it is an issue with the documentation that needs to be updated, or it is a bug that needs to be fixed.
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/pages/building-your-application/configuring/eslint
The text was updated successfully, but these errors were encountered: