Guide
Migration Guide
Migrate from @nuxtjs/eslint-module
@nuxtjs/eslint-module
is a module for running ESLint checks along with your dev server.
The new module is still in beta and changes are expected. While we are looking for early feedback, we recommend you not migrate to it yet in production projects.
It will be merged into @nuxt/eslint
as an opt-in feature under the checker
option.
npm i -D @nuxt/eslint vite-plugin-eslint2
npm uninstall @nuxtjs/eslint-module
nuxt.config.ts
export default defineNuxtConfig({
modules: [
// Replace '@nuxtjs/eslint-module' with:
'@nuxt/eslint',
],
eslint: {
checker: {
// the options from `@nuxtjs/eslint-module` go here
}
}
})
You can learn more about it on this page.