eslint: Allow configuring workingDirectory (#22972)

This addresses this comment here:
https://github.com/zed-industries/zed/issues/9648#issuecomment-2579246865

Release Notes:

- Added ability to configure `workingDirectory` when using ESLint.
Example: `{"lsp": {"eslint": {"settings": {"workingDirectory": {"mode":
"auto" }}}}}`
This commit is contained in:
Thorsten Ball
2025-01-10 23:21:51 +01:00
committed by GitHub
parent 05b48e8877
commit 3d80b21a91
2 changed files with 24 additions and 1 deletions

View File

@@ -153,6 +153,24 @@ You can configure ESLint's `rulesCustomizations` setting:
}
```
### Configure ESLint's `workingDirectory`:
You can configure ESLint's `workingDirectory` setting:
```json
{
"lsp": {
"eslint": {
"settings": {
"workingDirectory": {
"mode": "auto"
}
}
}
}
}
```
## See also
- [Yarn documentation](./yarn.md) for a walkthrough of configuring your project to use Yarn.