# ESLint
Since version 11.0.0, Next.js provides an integrated ESLint
experience out of the box. Add next lint
as a script to package.json
:
"scripts": {
"lint": "next lint"
}
Then run npm run lint
or yarn lint
:
yarn lint
If you don't already have ESLint configured in your application, you will be guided through the installation and configuration process.
yarn lint
# You'll see a prompt like this:
#
# ? How would you like to configure ESLint?
#
# ❯ Base configuration + Core Web Vitals rule-set (recommended)
# Base configuration
# None
One of the following three options can be selected:
+ 
关注公众号,获取验证码 !
验证码:
← 快速刷新 TypeScript →