Standard scalable boilerplate for Nextjs projects
- NextJS
- ReactJS
- TailwindCSS
- esLint
- Prettier
- PostCSS
- Autoprefixer
Works great with large scale projects with multiple contributors
made for personal use but you are always welcome to use it 🫡😇🤧🤧
note: If you wish to use a Typescript version make sure to run these commands to install Typescript and typings for React
npm i --save-dev typescript @types/node @types/react @types/react-dom
Rename all the file extensions from .js to .ts or .jsx to .tsx except the config files
and add the following code in tsconfig.json
at root directory
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"esModuleInterop": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"resolveJsonModule": true,
"isolatedModules": true,
"incremental": true,
"moduleResolution": "node"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"],
"exclude": ["node_modules"]
}