Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESlint not working in non root folder #71

Open
lexer21 opened this issue Oct 15, 2023 · 1 comment
Open

ESlint not working in non root folder #71

lexer21 opened this issue Oct 15, 2023 · 1 comment

Comments

@lexer21
Copy link

lexer21 commented Oct 15, 2023

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.

@0xhenrique
Copy link

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/"
   ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants