Commit df74cf5
fix(check): skip exported config for formatters when workspace file exists
For formatters, the exported config was always symlinked into the
staging area since it starts empty, effectively ignoring any
pre-existing file in the workspace root. This was inconsistent with
linter behavior, where a pre-existing workspace file takes precedence.
Now check if the file already exists in the workspace root before
symlinking the exported config into the staging area. If it does,
skip the exported config so the workspace file is used instead,
matching the linter behavior.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cb4269b commit df74cf5
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
319 | 322 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| |||
0 commit comments