预置 ESLint、Prettier、TypeScript、Jest 与 testing-library
next-ts-eslint-starter — Next.js 启动器模板
作者 pom421
一个基于 Next.js 的脚手架模板,预置 ESLint、Prettier、TypeScript、Jest 与 testing-library,并针对 VS Code 做了配置。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
VS Code 集成:保存时自动 lint,并排除 .next、node_modules、.history 等临时目录
lint 会触发 Prettier 格式化
页面使用 .page.tsx、API 使用 .api.ts 后缀,支持在 pages/api 目录中同目录放置工具与测试文件
package.json 提供 lint、test、check-all、fresh-install 脚本
包含 CI 与基于 conventional commit 的 release 两个 GitHub Action
模板详细介绍
该模板是作者个人偏好的 Next.js 起步项目,README 说明 ESLint、Prettier、TypeScript、Jest 和 testing-library 已开箱配置完成,整体面向 VS Code 使用。代码组织上,除 /public 外的所有代码放在 src/ 目录;页面文件必须以 .page.tsx 结尾,API 文件必须以 .api.ts 结尾,以便在 pages 或 api 目录中放置非页面/非接口的工具或测试文件并实现同目录共存。package.json 提供 lint、test、check-all(依次执行 lint、TypeScript 编译和测试)以及 fresh-install(删除临时目录并重新安装依赖)等脚本。仓库包含两个 GitHub Action:CI 用于检查 lint、TypeScript、测试并执行构建;release 在每次以 feat: 或 fix: 开头的提交后创建新版本,遵循 conventional commit。README 未说明具体依赖版本、样式方案、路由模式或部署平台配置。
适合你的项目吗?
适用场景
- 需要带 TypeScript 与测试配置的 Next.js 项目起步
- 希望在 VS Code 中保存即 lint 并自动格式化的开发流程
- 使用 .page.tsx / .api.ts 后缀组织页面、接口与同目录工具文件的代码库
- 通过 GitHub Actions 自动执行 lint、类型检查、测试与构建
适合人群
- 使用 VS Code 的 Next.js 开发者
- 需要 TypeScript、ESLint、Prettier、Jest 开箱配置的团队或个人
- 接受以文件后缀区分页面与 API 的代码组织约定的人
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
开发环境:执行 yarn create next-app --example https://github.com/pom421/next-ts-eslint-starter my-app,然后 cd my-app、yarn、yarn dev
- 2
生产构建:执行 yarn build 与 yarn start;README 注明静态站点可改用 yarn export
- 3
页面文件必须以 .page.tsx 结尾,API 文件必须以 .api.ts 结尾
- 4
README 未提供依赖版本、Node 版本或部署平台的具体要求
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/pom421/next-ts-eslint-starter/blob/main/LICENSEhttps://github.com/pom421/next-ts-eslint-starter/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 60 / 100
- 技术栈
- Next.js · React
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-01-16
- 截图检查日期
- 2026-10-13
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15
查看当时使用的来源资料
SHA-256: 25aedc8270e529d30a7f8753d00e6e59c464ac93647bfd4b0a7a71c4691c57dd
2026-10-13T14:53:15.820Z
来源文件 / 仓库This is an [Next.js](https://nextjs.org/) opinionated starter with ESLint, Prettier, Typescript, Jest, testing-libray already configured out of the box. All is configured to run in VS Code, with some goodies. - absolute imports managed by VS Code, Next and Jest - lint which triggers Prettier formating - VS Code goodies : - lint automatic at save - exclusion of temporary directories (.next, node_modules, .history if you use this plugin) - Next : - all code (except /public) is in src/ directory - useful scripts in package.json - lint - test - check-all: run in sequence lint, TS compilation and tests - fresh-install: remove temporary folders and reinstall packages - GitHub action: - CI : to check lint, ts, tests and to run the build - release : to make a new release after each commit beggining with feat: or fix: (see conventional commit) ## Nota bene All pages must end with a .page.tsx extension. All api must end with a .api.ts extension. This enables to have other files in pages or api, which are note page or api endpoint, to be used as utilities or test and leverage colocation. ## Usage For dev : ``` yarn create next-app --example https://github.com/pom421/next-ts-eslint-starter my-app cd my-app yarn yarn dev ``` For prod : ``` yarn build yarn start // yarn export for a static site only ```
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

ai-website-cloner-template
Clone any website with one command using AI coding agents
Next.js · 启动器

Next.js SaaS Starter
Next.js SaaS Starter 是 Next.js 官方维护的 SaaS 起点模板,定位介于学习资源和可直接部署的脚手架之间。
Next.js · SaaS

Next.js Commerce
Next.js Commerce 是 Vercel 团队维护的电商启动模板,基于 Next.js App Router 构建,采用服务端渲染、React Server Components、Server Actions …
Next.js · 电商

Next-js-Boilerplate
Next-js-Boilerplate 是一个面向 Next.js 16、Tailwind CSS 4 和 TypeScript 的启动器,核心定位是开发者体验优先。
Next.js · 启动器

tailwind-nextjs-starter-blog
tailwind-nextjs-starter-blog 是一个面向个人技术博客的 Next.js 与 Tailwind CSS 启动模板,其 v2 版本基于 App Router 与 React Server Comp…
Next.js · 博客

next-forge
Production-grade Turborepo template for Next.js apps.
Next.js · 启动器
