网页 综合 更新时间 2026-11-16 04:29:53

@nuxt/eslint · Nuxt Modules

自动蜘蛛 nuxt.com 正文约 1005 字
@nuxt/eslint · Nuxt Modules
All-in-one ESLint integration for Nuxt. It generates a project-aware ESLint flat config and provides the ability to optionally run ESLint check alongside the dev server.
Run the following command to add the @nuxt/eslint module to your project:
Once you start your Nuxt app, a eslint.config.mjs file will be generated under your project root. You can customize it as needed.
If you are using TypeScript, you need to install the typescript in your project:
And create an eslint.config.mjs file under your project root, with the following content:
withNuxt will take the rest arguments of flat configs and append them after Nuxt flat config items. You can either use the Nuxt DevTools panel to inspect the resolved ESLint flat config, or manually run npx @eslint/config-inspector.
Editor setup, formatting, config customizations, the dev server checker and other recipes for the ESLint module.
Stay updated on new releases and features, guides, and community updates.
Copyright © 2016-2026 Nuxt - MIT License
访问原文 返回搜索 https://nuxt.com/modules/eslint
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。