Open LukasSefcik opened 6 months ago
For my own understanding: in your ESLint config it looks like you're 5 levels deep in your monorepo ("extends": ["../../../../.eslintrc.json"]
). The parserOptions.project
value — is that path relative to the root of the repo or relative to the location at which you open Zed?
Referring to this from your config:
{
"extends": ["../../../../.eslintrc.json"],
// ...
"overrides": [
{
"parserOptions": {
"project": ["libs/shared/core/application-insights/tsconfig.*?.json"]
},
// ...
},
// ...
]
}
I am using nx monorepo and the mentioned project is at level 5 in the directory structure. However, no matter which project I try, they all behave the same and show the error. I open Zed at the highest (root) level of the entire monorepo.
I'm having the same issue with a NX monorepo. (No problem with other IDE)
It's really hard for me to reproduce without any steps-to-reproduce, or a minimal reproducible example (MRE). If someone can provide an MRE with a small-as-possible eslint config and as-few-as-possible files, then we can dig into this.
Check for existing issues
Describe the bug / provide steps to reproduce it
Everytime I open file in my monorepo angular project I got ESLint: Error while loading rule ... Error message shows I have to configure "parserOptions.project" property but it's already set and works in other IDE (VSCode, WebStorm, NeoVim...).
I'm using Angular 17.2 ESLint: 8.56 @typescript-eslint: 6.21
This is my .eslintrc.json config
Environment
Zed: v0.126.2 (Zed) OS: macOS 14.3.1 Memory: 24 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log