-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Setup check format in pipeline #1001
base: main
Are you sure you want to change the base?
Conversation
Run & review this pull request in StackBlitz Codeflow. |
❌ Deploy Preview for solid-docs failed. Why did it fail? →
|
This is a reminder that Prettier does not format fenced code blocks inside JSX unless the following conditions are met:
For example, Prettier does not recognize the fenced code block in this code: <TabsCodeBlocks>
<div id="npm">
```bash frame="none"
npm install @macaron-css/core @macaron-css/solid
```
</div>
</TabsCodeBlocks> As a result, it formats it incorrectly like this: <TabsCodeBlocks>
<div id="npm">
```bash frame="none" npm install @macaron-css/core @macaron-css/solid ```
</div>
</TabsCodeBlocks> To resolve this issue, you need to manually check all fenced code blocks and ensure they meet the criteria mentioned above: <TabsCodeBlocks>
<div id="npm">
```bash frame="none"
npm install @macaron-css/core @macaron-css/solid
```
</div>
</TabsCodeBlocks> I have already addressed this in my own pull request, specifically in this commit. If you find it helpful, you can use |
Description(required)
Setup format files in CI
Run
pnpm exec prettier . --write
Related issues & labels