---
type: article
title:  "Next.js"
date:   2024-05-11 08:00:00 +0800
tags: [next-js, react, frontend, javascript, eslint, node-js]
---

1. 初始化Next.js项目

首先，创建一个新的Next.js项目：

```bash
npx create-next-app next-quiz-app
cd next-quiz-app
```

运行

```bash
npm run dev
```


## ESLint
```bash
npm run lint
```
```
> next-quiz-app@0.1.0 lint
> next lint

✔ No ESLint warnings or errors
```
