Skip to content

Commit 04a2f61

Browse files
committed
fix: correct MDX comment syntax and exclude from prettier
1 parent 87082b6 commit 04a2f61

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
fixtures
22
e2e/fixtures
3-
components/legacy/e2e-helper/excluded-fixtures
3+
components/legacy/e2e-helper/excluded-fixtures
4+
# MDX files with JSX comments that prettier incorrectly escapes
5+
scopes/react/aspect-docs/react/react.mdx
6+
scopes/react/ui/loader-fallback/loader-fallback.docs.mdx

scopes/react/aspect-docs/react/react.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class CustomReactExtension {
169169
}
170170
```
171171

172-
{/\* ## Composition Providers
172+
{/* ## Composition Providers
173173
174174
The React environment is able to "wrap" component compositions with an array of providers, each of which is simply a component which wraps its `children` with functionality, such as a context, styling, theme, etc.
175175
@@ -222,7 +222,7 @@ export class ReactWithProvidersPreview {
222222
ReactWithProvidersAspect.addRuntime(ReactWithProvidersPreview);
223223
```
224224
225-
> See the full demo project [here](https://github.com/teambit/react-env-with-providers). \*/}
225+
> See the full demo project [here](https://github.com/teambit/react-env-with-providers). */}
226226

227227
### Transformers API docs
228228

scopes/react/ui/loader-fallback/loader-fallback.docs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const safeTarget = useFallback(Target && <Target />, <DefaultComponent />, { tim
2222
1. then, after _x_ seconds - show the default.
2323

2424
{/* live playground doesn't keep state when editing :( */}
25-
{/\* Try it out:
25+
{/* Try it out:
2626
2727
````tsx live
2828
function Example() {

0 commit comments

Comments
 (0)