Open cjg1122 opened 1 month ago
@cjg1122 Thank you for submitting an issue!
Tough to say if this was ever the intention with next lint
— but I'm sure you can extend the existing linting to catch this.
@samcx The documentation mentions ‘next/typescript’ but ‘v14.2.5’ doesn't implement it. I found that ‘canary’ implements this ‘next/typescript’.
https://github.com/vercel/next.js/blob/canary/packages/eslint-config-next/typescript.js
Link to the code that reproduces this issue
To Reproduce
https://github.com/user-attachments/assets/9e7b3fe0-5e20-42fa-bf9d-59b21448b361
codesandbox
Current vs. Expected behavior
Running npm run lint should prompt an error or warning doc: https://nextjs.org/docs/app/building-your-application/configuring/eslint#typescript
Provide environment information
Which area(s) are affected? (Select all that apply)
create-next-app
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response