Skip to content

Commit

Permalink
Fix code examples in prettier challenge blog post (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored and yossydev committed Dec 3, 2023
1 parent 92576e2 commit 117c714
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/content/blog/biome-wins-prettier-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ With this challenge, we added new options to the formatter:
- [`bracketSameLine`](/reference/configuration#formatterbracketsameline)

```jsx title="example.js"
// Existing behavior. Now also the default, meaning `bracketSameLine: true`.
// Existing behavior. Now also the default, meaning `bracketSameLine: false`.
<Foo
className={somethingReallyLongThatForcesThisToWrap}
anotherReallyLongAttribute={withAValueThatsSurelyTooLong}
Expand All @@ -81,7 +81,7 @@ With this challenge, we added new options to the formatter:
After formatting with `"bracketSameLine": true`:

```jsx title="example.js"
// New behavior, with `bracketSameLine: false`.
// New behavior, with `bracketSameLine: true`.
<Foo
className={somethingReallyLongThatForcesThisToWrap}
anotherReallyLongAttribute={withAValueThatsSurelyTooLong}
Expand All @@ -105,8 +105,8 @@ With this challenge, we added new options to the formatter:
After formatting with `"bracketSpacing": false`:

```js title="example.js"
import { sort } from "sort.js";
const value = { sort };
import {sort} from "sort.js";
const value = {sort};
```

## VSCode extension goodies
Expand Down

0 comments on commit 117c714

Please sign in to comment.