This is a NextJS starter template based off create-next-app
, including:
- Typescript
- TailwindCSS
- 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 - Prefer arrow functions with implicit returns when appropriate
- ...and a bunch of other rules
- Path aliases configured under
tsconfig.json
(@components/
,@lib/
)
$ npx create-next-app -e https://github.com/filp/nextjs-ts-tailwind-starter
$ npx degit https://github.com/filp/nextjs-ts-tailwind-starter <your-app-name>