vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.79k stars 26.95k forks source link

Docs: eslint instructions are still for v8 #71864

Open MonstraG opened 1 week ago

MonstraG commented 1 week ago

What is the documentation issue?

Documentation page for eslint config - https://nextjs.org/docs/app/building-your-application/configuring/eslint - still describes how to set everything up with Eslint 8.

So far I tried to follow https://github.com/vercel/next.js/issues/71763#issuecomment-2437741234 instead (I don't wanna use the compat mode), but

TS7016: Could not find a declaration file for module @next/eslint-plugin-next.

Is there any context that might help us understand?

This is sort of duplicates https://github.com/vercel/next.js/issues/71763, but technically not, as that one is about what you get installed, and this one is about docs, and for me the docs matter more.

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/app/building-your-application/configuring/eslint

soapproject commented 1 week ago

https://github.com/vercel/next.js/discussions/71806#discussioncomment-11056112
Maybe adding this npm command to the doc would also help. it saved my day :+1:

Sparticuz commented 1 week ago

@MonstraG you can use // @ts-expect-error There are no types to mitigate that error. Most of my eslint plugins don't have types