This is a NextJS 12 starter template based off nextjs-ts-tailwind
for real-world app development, including:
- Typescript
- TailwindCSS
- Tanstack-Query with hydration support & helpers +
superjson
, as well as its devtools enabled in development. next-better-api
with API schema validation powered by Zod- Google Font (Roboto) embed under a custom
_document.tsx
file, and matchingtailwind.config.js
- Custom
prettier
andeslint
configurationprettier-plugin-tailwindcss
for automatic Tailwind class sorting- Import order rules
- Enforce use of
type
modifier in imports when appropriate - Avoid
console.log
statements - Avoid dangling Promises
- Prefer arrow functions with implicit returns when appropriate
- ...and a bunch of other rules
- Path aliases configured under
tsconfig.json
(@components/
,@lib/
,@api/
)
$ npx create-next-app -e https://github.com/filp/nextjs-app-starter
$ npx degit https://github.com/filp/nextjs-app-starter <your-app-name>
See license information under LICENSE.md
.
Contributions are super welcome - in the form of bug reports, suggestions, or better yet, pull requests!