Add working directories for eslint (#9738)

Fix #9648 

Release notes:

- Added ability to configure ESLint's `workingDirectories` in settings.
Example:
`{"lsp":{"eslint":{"settings":{"workingDirectories":["./client","./server"]}}}}`.
#9648

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
This commit is contained in:
Hans 2024-03-28 14:01:19 +08:00 committed by GitHub
parent 2f2f236afe
commit 96a1af7b0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -85,3 +85,19 @@ You can configure ESLint's `nodePath` setting (requires Zed `0.127.0`):
}
}
```
#### Configure ESLint's `workingDirectories`:
You can configure ESLint's `workingDirectories` setting (requires Zed `0.130.x`):
```json
{
"lsp": {
"eslint": {
"settings": {
"workingDirectories": ["./client", "./server"]
}
}
}
}
```