sprybee opened a new pull request, #4355:
URL: https://github.com/apache/streampark/pull/4355

   ## Purpose
   
   Fix the invalid Prettier command in the frontend lint-staged configuration.
   
   ## Root cause
   
   The command misses a space between `--write` and `--parser`, so Prettier 
interprets `--write--parser=json` as an unknown option. Since Prettier still 
exits successfully, the JSON formatting step can silently skip the intended 
parser option.
   
   ## Changes
   
   - Replace `prettier --write--parser json` with `prettier --write --parser 
json`.
   
   ## Verification
   
   - Confirmed the original command prints `Ignored unknown option 
--write--parser=json`.
   - Parsed `package.json` successfully with Node.js.
   - Ran Prettier with `--parser json` successfully.
   - Ran `git diff --check` successfully.
   
   Closes #4354
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to