# ESLint

Since version 11.0.0, Next.js provides an integrated ESLint experience out of the box. Add next lintas a script to package.json:

"scripts": {
  "lint": "next lint"
}

Then run npm run lintor 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:

+

关注公众号,获取验证码 !

验证码:
Last Updated: 5/13/2023, 8:55:38 PM