next.js
8b7f2b89 - docs: explain ESLint setup with TypeScript 7 (#101246)

Commit
24 days ago
docs: explain ESLint setup with TypeScript 7 (#101246) ## Summary Document the npm setup for using the TypeScript 6 compiler API alongside the TypeScript 7 compiler with `eslint-config-next`. Installing TypeScript 7 directly as `typescript` causes config loading to fail because current `typescript-eslint` needs the older compiler API. The shared ESLint page covers both routers and links to Microsoft's setup instructions and the upstream support tracker. Related: #101247 aligns the TypeScript peer range with the compiler API supported by `typescript-eslint`. ## Verification - Verified the documented aliases in an npm fixture: both Next ESLint configs load, linting succeeds, `tsc` reports 7.0.2, and `tsc6` reports 6.0.3. Deliberately invalid TSX produces the expected unused-variable warning and explicit-any error. - Prettier, MDX ESLint, and alex on the new section pass. Whole-page alex reports the same existing warning about “easy” in the introduction before and after this change. - Framework tests were not run for this documentation-only change. <!-- NEXT_JS_LLM -->
Author
Parents
Loading