Skip to content

Commit a7737d3

Browse files
committed
Turn "embeddedLanguageFormatting" back on in .oxfmtrc.json
1 parent 38fbb48 commit a7737d3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.oxfmtrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3-
"embeddedLanguageFormatting": "off",
43
"ignorePatterns": [".changeset/*.md"],
54
"semi": false,
65
"singleQuote": true

docs/react/rendering-modes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ The client gets the server-side rendered markup without any accompanying JavaScr
1010

1111
You should use this setting to deliver lighter pages when there's no need to run any code on them, such as statically generated content sites.
1212

13-
```vue
13+
```jsx
1414
export const serverOnly = true
1515

16-
export function Index () {
16+
export function Index() {
1717
return <p>No JavaScript sent to the browser.</p>
1818
}
1919
```
@@ -26,10 +26,10 @@ If a route module exports `clientOnly` set to `true`, no SSR will take place, on
2626

2727
You can use this setting to save server resources on internal pages where SSR makes no significant diference for search engines or UX in general, such as a password-protected admin section.
2828

29-
```vue
29+
```jsx
3030
export const clientOnly = true
3131

32-
export function Index () {
32+
export function Index() {
3333
return <p>No pre-rendered HTML sent to the browser.</p>
3434
}
3535
```

0 commit comments

Comments
 (0)