viandwi24 / nuxt3-awesome-starter

a Nuxt 3 template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer

Home Page:https://nuxt3-awesome-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESlint not working in non root folder

lexer21 opened this issue · comments

Hello,

I'm trying to use this project as the frontend for my fullstack application. The problem arrises when I move this project in a folder s.t. it is not longer in root. For example now the frontend project is located in atlas/frontend/ (atlas is the name of the root folder). Then ESlint no longer works correctly and the nuxt composables look undefined. The projects still works when i run it, but its anoying the have to deal with those es lint errors.

image

Any help is greatly appreciated.

Can you share your .eslintrc file? Maybe adding "root": true, to your .eslintrc file might fix the problem?
Also, found this on internet, but I'm not sure if it would be useful in your case:

{
   "eslint.workingDirectories": [
     "path1/",
     "path2/"
   ]
}