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 authored and GitHub committed 2025-01-10 22:21:51 +00:00
1 parent 05b48e8877
commit 3d80b21a91
2 files changed
+24 -1

No files matched your search

+18
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.