Skip to content

Commit 8a99f90

Browse files
authored
style: format html&markdown files (#11531)
1 parent 7c75cc3 commit 8a99f90

File tree

32 files changed

+1451
-1319
lines changed

32 files changed

+1451
-1319
lines changed

.github/commit-convention.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
4444

4545
### Full Message Format
4646

47-
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
47+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
4848

4949
```
5050
<type>(<scope>): <subject>
@@ -74,9 +74,9 @@ The scope could be anything specifying the place of the commit change. For examp
7474

7575
The subject contains a succinct description of the change:
7676

77-
* use the imperative, present tense: "change" not "changed" nor "changes"
78-
* don't capitalize the first letter
79-
* no dot (.) at the end
77+
- use the imperative, present tense: "change" not "changed" nor "changes"
78+
- don't capitalize the first letter
79+
- no dot (.) at the end
8080

8181
### Body
8282

.github/contributing.md

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
3535

3636
Another aspect of it is that large scale stylistic changes result in massive diffs that touch multiple files, adding noise to the git history and makes tracing behavior changes across commits more cumbersome.
3737

38-
3938
### Pull Request Checklist
4039

4140
- Vue core has two primary work branches: `main` and `minor`.

.github/maintenance.md

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Depending on the type of the PR, different considerations need to be taken into
8080
- Make sure it doesn't accidentally cause dev-only or compiler-only code branches to be included in the runtime build. Notable case is that some functions in @vue/shared are compiler-only and should not be used in runtime code, e.g. `isHTMLTag` and `isSVGTag`.
8181

8282
- Performance
83+
8384
- Be careful about code changes in "hot paths", in particular the Virtual DOM renderer (`runtime-core/src/renderer.ts`) and component instantiation code.
8485

8586
- Potential Breakage

.prettierignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
dist
2-
*.md
3-
*.html
42
pnpm-lock.yaml
3+
CHANGELOG*.md

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Please note that we do not consider XSS via template expressions a valid attack
1010

1111
We would like to thank the following security researchers for responsibly disclosing security issues to us.
1212

13-
- Jeet Pal - [@jeetpal2007](https://github.com/jeetpal2007) | [Email]([email protected]) | [LinkedIn](https://in.linkedin.com/in/jeet-pal-22601a290 )
13+
- Jeet Pal - [@jeetpal2007](https://github.com/jeetpal2007) | [Email]([email protected]) | [LinkedIn](https://in.linkedin.com/in/jeet-pal-22601a290)
1414
- Mix - [@mnixry](https://github.com/mnixry)
1515
- Aviv Keller - [@RedYetiDev](https://github.com/redyetidev) | [LinkedIn](https://www.linkedin.com/in/redyetidev) <[email protected]>

packages/compiler-dom/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# @vue/compiler-dom
1+
# @vue/compiler-dom

packages/compiler-ssr/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# @vue/compiler-ssr
1+
# @vue/compiler-ssr

packages/runtime-core/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { render, createApp } = createRenderer({
1313
patchProp,
1414
insert,
1515
remove,
16-
createElement
16+
createElement,
1717
// ...
1818
})
1919

packages/runtime-dom/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# @vue/runtime-dom
22

3-
``` js
3+
```js
44
import { h, createApp } from '@vue/runtime-dom'
55

66
const RootComponent = {
77
render() {
88
return h('div', 'hello world')
9-
}
9+
},
1010
}
1111

1212
createApp(RootComponent).mount('#app')

packages/runtime-test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is for Vue's own internal tests only - it ensures logic tested using this p
44

55
It can also be used as a reference for implementing a custom renderer.
66

7-
``` js
7+
```js
88
import { h, render, nodeOps, dumpOps } from '@vue/runtime-test'
99

1010
const App = {

packages/server-renderer/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
```ts
1212
function renderToString(
1313
input: App | VNode,
14-
context?: SSRContext
14+
context?: SSRContext,
1515
): Promise<string>
1616
```
1717

@@ -23,7 +23,7 @@ const { renderToString } = require('@vue/server-renderer')
2323
2424
const app = createSSRApp({
2525
data: () => ({ msg: 'hello' }),
26-
template: `<div>{{ msg }}</div>`
26+
template: `<div>{{ msg }}</div>`,
2727
})
2828
2929
;(async () => {
@@ -74,7 +74,7 @@ Render and pipe to an existing [Node.js Writable stream](https://nodejs.org/api/
7474
function pipeToNodeWritable(
7575
input: App | VNode,
7676
context: SSRContext = {},
77-
writable: Writable
77+
writable: Writable,
7878
): void
7979
```
8080

@@ -94,7 +94,7 @@ Renders input as a [Web ReadableStream](https://developer.mozilla.org/en-US/docs
9494
```ts
9595
function renderToWebStream(
9696
input: App | VNode,
97-
context?: SSRContext
97+
context?: SSRContext,
9898
): ReadableStream
9999
```
100100

@@ -117,7 +117,7 @@ Render and pipe to an existing [Web WritableStream](https://developer.mozilla.or
117117
function pipeToWebWritable(
118118
input: App | VNode,
119119
context: SSRContext = {},
120-
writable: WritableStream
120+
writable: WritableStream,
121121
): void
122122
```
123123

@@ -144,7 +144,7 @@ Renders input in streaming mode using a simple readable interface.
144144
function renderToSimpleStream(
145145
input: App | VNode,
146146
context: SSRContext,
147-
options: SimpleReadable
147+
options: SimpleReadable,
148148
): SimpleReadable
149149
150150
interface SimpleReadable {
@@ -172,7 +172,7 @@ renderToSimpleStream(
172172
},
173173
destroy(err) {
174174
// error encountered
175-
}
176-
}
175+
},
176+
},
177177
)
178178
```

packages/sfc-playground/index.html

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
@@ -7,13 +7,16 @@
77
<link rel="icon" type="image/svg" href="/logo.svg" />
88
<title>Vue SFC Playground</title>
99
<script>
10-
const savedPreferDark = localStorage.getItem('vue-sfc-playground-prefer-dark')
11-
if (
12-
savedPreferDark === 'true' ||
13-
(!savedPreferDark && window.matchMedia('(prefers-color-scheme: dark)').matches)
14-
) {
10+
const savedPreferDark = localStorage.getItem(
11+
'vue-sfc-playground-prefer-dark',
12+
)
13+
if (
14+
savedPreferDark === 'true' ||
15+
(!savedPreferDark &&
16+
window.matchMedia('(prefers-color-scheme: dark)').matches)
17+
) {
1518
document.documentElement.classList.add('dark')
16-
}
19+
}
1720
</script>
1821
<script type="module" src="/src/main.ts"></script>
1922
</head>

packages/sfc-playground/src/download/template/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

packages/template-explorer/index.html

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
<title>Vue Template Explorer</title>
2-
<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://unpkg.com/[email protected]/min/vs/editor/editor.main.css">
3-
<link rel="stylesheet" href="./style.css">
2+
<link
3+
rel="stylesheet"
4+
data-name="vs/editor/editor.main"
5+
href="https://unpkg.com/[email protected]/min/vs/editor/editor.main.css"
6+
/>
7+
<link rel="stylesheet" href="./style.css" />
48

59
<div id="header"></div>
610
<div id="source" class="editor"></div>
711
<div id="output" class="editor"></div>
812

913
<script src="https://unpkg.com/[email protected]/min/vs/loader.js"></script>
1014
<script>
11-
require.config({
12-
paths: {
13-
'vs': 'https://unpkg.com/[email protected]/min/vs'
14-
}
15-
})
15+
require.config({
16+
paths: {
17+
vs: 'https://unpkg.com/[email protected]/min/vs',
18+
},
19+
})
1620
</script>
1721
<script src="./dist/template-explorer.global.js"></script>
1822
<script>
19-
require(['vs/editor/editor.main'], init /* injected by build */)
23+
require(['vs/editor/editor.main'], init /* injected by build */)
2024
</script>

packages/template-explorer/local.html

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
<title>Vue Template Explorer</title>
2-
<link rel="stylesheet" data-name="vs/editor/editor.main" href="./node_modules/monaco-editor/min/vs/editor/editor.main.css">
3-
<link rel="stylesheet" href="./style.css">
2+
<link
3+
rel="stylesheet"
4+
data-name="vs/editor/editor.main"
5+
href="./node_modules/monaco-editor/min/vs/editor/editor.main.css"
6+
/>
7+
<link rel="stylesheet" href="./style.css" />
48

59
<div id="header"></div>
610
<div id="source" class="editor"></div>
711
<div id="output" class="editor"></div>
812

913
<script src="./node_modules/monaco-editor/min/vs/loader.js"></script>
1014
<script>
11-
require.config({
12-
paths: {
13-
'vs': './node_modules/monaco-editor/min/vs'
14-
}
15-
})
15+
require.config({
16+
paths: {
17+
vs: './node_modules/monaco-editor/min/vs',
18+
},
19+
})
1620
</script>
1721
<script src="./dist/template-explorer.global.js"></script>
1822
<script>
19-
require(['vs/editor/editor.main'], init /* injected by build */)
23+
require(['vs/editor/editor.main'], init /* injected by build */)
2024
</script>

0 commit comments

Comments
 (0)