nuxt-modules / eslint

ESLint module for Nuxt.js
MIT License
160 stars 15 forks source link

integration problem with @nuxtjs/eslint-module #93

Closed hosseinghs closed 1 year ago

hosseinghs commented 1 year ago

Hi I have a project created with nuxi, then I followed these steps to add eslint to my project: after installing @nuxtjs/eslint-module I added the config to my nuxt.config.ts file as following:

export default defineNuxtConfig({
   modules: [
     '@nuxtjs/eslint-module'
   ]
  })

PROBLEM is when I run yarn dev I get the error: Cannot start nuxt: Failed to import ESLint, do you install or configure eslintPath?

I install eslint version ^7 along side @nuxtjs/eslint-module and got the same error

tanerijun commented 1 year ago

You may need to create an ESLint config file in your project root. example