Skip to content

Commit 1016e80

Browse files
authored
Prettify files (#5170)
* lint against mdx * run prettier against repository
1 parent d6deffa commit 1016e80

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist
2+
examples

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"prepare": "husky install"
6060
},
6161
"lint-staged": {
62-
"*.{js,jsx,md}": [
62+
"*.{js,jsx,md,mdx}": [
6363
"npm run lint-js"
6464
],
6565
"*.md": [

src/components/StackBlitzPreview/StackBlitzPreview.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ StackBlitzPreview.propTypes = {
77
};
88

99
export default function StackBlitzPreview(props = {}) {
10-
const { example = '', description = 'Check out this guide live on StackBlitz.' } = props;
10+
const {
11+
example = '',
12+
description = 'Check out this guide live on StackBlitz.',
13+
} = props;
1114

1215
const url = `https://stackblitz.com/github/webpack/webpack.js.org/tree/master/examples/${example}`;
1316

src/content/contribute/writers-guide.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ related:
2929
- title: Title of Related Article
3030
url: [url of related article]
3131
---
32-
3332
```
3433

3534
Let's break these down:

src/content/contribute/writing-a-plugin.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ Plugins are instantiated objects with an `apply` method on their prototype. This
5858
```javascript
5959
class HelloWorldPlugin {
6060
apply(compiler) {
61-
compiler.hooks.done.tap('Hello World Plugin', (
62-
stats /* stats is passed as an argument when done hook is tapped. */
63-
) => {
64-
console.log('Hello World!');
65-
});
61+
compiler.hooks.done.tap(
62+
'Hello World Plugin',
63+
(
64+
stats /* stats is passed as an argument when done hook is tapped. */
65+
) => {
66+
console.log('Hello World!');
67+
}
68+
);
6669
}
6770
}
6871

src/content/guides/getting-started.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ webpack is used to compile JavaScript modules. Once [installed](/guides/installa
3131

3232
W> The minimum supported Node.js version to run webpack 5 is 10.13.0 (LTS)
3333

34-
<StackBlitzPreview
35-
example="getting-started?terminal="
36-
/>
34+
<StackBlitzPreview example="getting-started?terminal=" />
3735

3836
## Basic Setup
3937

src/content/guides/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Let's set up a configuration to support JSX and compile TypeScript down to ES5..
5252
"target": "es5",
5353
"jsx": "react",
5454
"allowJs": true,
55-
"moduleResolution": "node",
55+
"moduleResolution": "node"
5656
}
5757
}
5858
```

0 commit comments

Comments
 (0)