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](https://private-user-images.githubusercontent.com/22595140/275333014-7bce1956-05ce-4b2d-9e78-51076dd2d86f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzOTc0NTYsIm5iZiI6MTcyMTM5NzE1NiwicGF0aCI6Ii8yMjU5NTE0MC8yNzUzMzMwMTQtN2JjZTE5NTYtMDVjZS00YjJkLTllNzgtNTEwNzZkZDJkODZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDEzNTIzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2Njk0MzMzYmZiMjVmYzU4OTgxM2U3ZTMzNmRmZTFjNTAyNjM1YzVhOWEzMjE3MGJhY2Y4M2JlZjU4YWYwNDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rWFOQ-O0yt6pWnGa3W3XnZL46z_uNaZB3pSHP4bv7UA)
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/"
]
}