Next.js TypeScript Template with Auto Code Formatting in VSCode
Getting Started
git clone https://github.com/huydhoang/next-typescript-template.git
cd next-typescript-template
pnpm dev
pnpm is a cool alternative to yarn
or npm
as it is faster and can reuse downloaded packages to reduce the size of node_modules
.
If you use yarn
yarn dev
or npm
npm run dev
Auto Code Formatting
Auto Code Formatting for TypeScript was setup using ESLint and Prettier in VSCode.
Simply turn on Editor: Format On Save
feature within VSCode and let the magic happen.
File > Preferences > Search 'Format On Save'
https://github.com/huydhoang/next-typescript-template
Feel free to share and comment! :)
Top comments (0)