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" }}}}}`
Showing the changes to docs/src/languages/javascript.md (1 of 2 files). Show all
Unified · Split
| @@ -153,6 +153,24 @@ You can configure ESLint's `rulesCustomizations` setting: · 152 unmodified lines | |||
| 153 | } | 153 | } |
| 154 | ``` | 154 | ``` |
| 155 | 155 | ||
| 156 | ### Configure ESLint's `workingDirectory`: | ||
| 157 | |||
| 158 | You can configure ESLint's `workingDirectory` setting: | ||
| 159 | |||
| 160 | ```json | ||
| 161 | { | ||
| 162 | "lsp": { | ||
| 163 | "eslint": { | ||
| 164 | "settings": { | ||
| 165 | "workingDirectory": { | ||
| 166 | "mode": "auto" | ||
| 167 | } | ||
| 168 | } | ||
| 169 | } | ||
| 170 | } | ||
| 171 | } | ||
| 172 | ``` | ||
| 173 | |||
| 156 | ## See also | 174 | ## See also |
| 157 | 175 | ||
| 158 | - [Yarn documentation](./yarn.md) for a walkthrough of configuring your project to use Yarn. | 176 | - [Yarn documentation](./yarn.md) for a walkthrough of configuring your project to use Yarn. |