I'm currently working on a project with the following structure:
modules
│ ├── client
│ ├── .eslintrc.json
│ └── backend
│ ├── .eslintrc.json
...
One issue I've run into is that when I access the project from the parent folder of modules (the root folder), the Eslint instance inside VS Code cannot resolve import paths, except for those pointing to node_modules. However, if I run Eslint within the client folder, it resolves the paths without any issues.
I learned that in Javascript Eslint configuration, you can use __dirname to address this problem. Unfortunately, this feature is not available in JSON files. Is there an alternative method to achieve the same outcome in JSON, or do I need to convert my configurations to javascript?
Thank you for your help.