npx create-next-app
// or
yarn create next-app
npx create-next-app
# or
yarn create next-app
npm i next@latest react@latest react-dom@latest eslint-config-next@latest
npx create-next-app@latest
yarn create next-app
pnpm create next-app
If you want to start with a TypeScript
project you can use the --typescript flag:
npx create-next-app@latest --typescript
yarn create next-app --typescript
pnpm create next-app --typescript
npm i next@latest react@latest react-dom@latest eslint-config-next@latest
{
"extends": ["next", "next/core-web-vitals", "eslint:recommended"],
"globals": {
"React": "readonly"
},
"rules": {
"no-unused-vars": [1, { "args": "after-used", "argsIgnorePattern": "^_" }]
}
}