Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit fd58506

Browse files
gatsbybottbntdima
andcommitted
Update prettier (#22520)
* Update prettier to latest version * Run 'yarn format' from root of project * Remove prettier-ignore for nested markdown * Fix starters * Fix benchmarks * Fix examples * Fix integration-tests * Update eslint-config-prettier & eslint-plugin-prettier * Fix linting * Update all .prettierrc * Run Prettier on full codebase * Remove unnecessary .prettierrc & .prettierignore files * Update Prettier script * Update snapshots * Revert snapshot * Revert "Update Prettier script" This reverts commit 008eb996 * Update snapshot * Update docs/blog/2018-08-09-swag-store/index.md Co-Authored-By: Dima An <[email protected]> Co-authored-by: Dima An <[email protected]>
1 parent 2b821d8 commit fd58506

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.prettierrc

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"endOfLine": "lf",
3-
"semi": false,
4-
"singleQuote": false,
5-
"tabWidth": 2,
6-
"trailingComma": "es5"
2+
"arrowParens": "avoid",
3+
"semi": false
74
}

content/posts/hello-world.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ Delete me, and get writing!
1111
module.exports = {
1212
plugins: [
1313
"gatsby-theme-blog", // highlight-line
14-
"gatsby-theme-notes"
15-
]
16-
};
14+
"gatsby-theme-notes",
15+
],
16+
}
1717
```
1818

1919
This is another paragraph after the code block.
2020

2121
## This is a secondary heading
2222

2323
```jsx
24-
import React from "react";
25-
import { ThemeProvider } from "theme-ui";
26-
import theme from "./theme";
24+
import React from "react"
25+
import { ThemeProvider } from "theme-ui"
26+
import theme from "./theme"
2727

2828
export default props => (
2929
<ThemeProvider theme={theme}>{props.children}</ThemeProvider>
30-
);
30+
)
3131
```

0 commit comments

Comments
 (0)