Skip to content

Commit 42f3656

Browse files
chore: whitespace changes suggested by Prettier (#1036)
1 parent 8525c7a commit 42f3656

20 files changed

+83
-78
lines changed

src/api/application-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,14 @@ setTimeout(() => app.unmount(), 5000)
329329
export default {
330330
install(app) {
331331
const version = Number(app.version.split('.')[0])
332-
332+
333333
if (version < 3) {
334334
console.warn('This plugin requires Vue 3')
335335
}
336-
336+
337337
// ...
338338
}
339339
}
340340
```
341-
341+
342342
- **See also**: [Global API - version](/api/global-api.html#version)

src/api/built-in-components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { KeepAlive, Teleport, Transition, TransitionGroup } = Vue
1414
import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
1515
```
1616

17-
`<component>` and `<slot>` are component-like features of template syntax. They are not true components and they can't be imported like the components shown above.
17+
`<component>` and `<slot>` are component-like features of template syntax. They are not true components and they can't be imported like the components shown above.
1818

1919
## component
2020

@@ -45,13 +45,13 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
4545

4646
```js
4747
const { Transition, TransitionGroup } = Vue
48-
48+
4949
const Component = {
5050
components: {
5151
Transition,
5252
TransitionGroup
5353
},
54-
54+
5555
template: `
5656
<component :is="isGroup ? 'TransitionGroup' : 'Transition'">
5757
...
@@ -60,7 +60,7 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
6060
}
6161
```
6262

63-
Registration is not required if you pass the component itself to `is` rather than its name.
63+
Registration is not required if you pass the component itself to `is` rather than its name.
6464

6565
- **See also:** [Dynamic Components](../guide/component-dynamic-async.html)
6666

src/api/instance-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
- **Option: deep**
123123

124124
To also detect nested value changes inside Objects, you need to pass in `deep: true` in the options argument. This option also can be used to watch array mutations.
125-
125+
126126
> Note: when mutating (rather than replacing) an Object or an Array and watch with deep option, the old value will be the same as new value because they reference the same Object/Array. Vue doesn't keep a copy of the pre-mutate value.
127127
128128
```js

src/api/options-assets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
A hash of directives to be made available to the component instance.
1010

1111
- **Usage:**
12+
1213
```js
1314
const app = createApp({})
1415

@@ -35,6 +36,7 @@
3536
A hash of components to be made available to the component instance.
3637

3738
- **Usage:**
39+
3840
```js
3941
const Foo = {
4042
template: `<div>Foo</div>`

src/api/options-misc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
- **Type:** `Array<string>`
1616

17-
- **Default:** `{{ "['\u007b\u007b', '\u007d\u007d']" }}`
17+
- **Default:** `{{ "['\u007b\u007b', '\u007d\u007d']" }}`
1818

1919
- **Restrictions:** This option is only available in the full build, with in-browser template compilation.
2020

src/api/refs-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ isReactive(foo.value) // false
217217

218218
## `triggerRef`
219219

220-
Execute any effects tied to a [`shallowRef`](#shallowref) manually.
220+
Execute any effects tied to a [`shallowRef`](#shallowref) manually.
221221

222222
```js
223223
const shallow = shallowRef({

src/coc/index.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
# Code Of Conduct
2-
3-
## Our Pledge
4-
5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, political party, or sexual identity and orientation. Note, however, that religion, political party, or other ideological affiliation provide no exemptions for the behavior we outline as unacceptable in this Code of Conduct.
6-
7-
## Our Standards
8-
9-
Examples of behavior that contributes to creating a positive environment include:
10-
11-
- Using welcoming and inclusive language
12-
- Being respectful of differing viewpoints and experiences
13-
- Gracefully accepting constructive criticism
14-
- Focusing on what is best for the community
15-
- Showing empathy towards other community members
16-
17-
Examples of unacceptable behavior by participants include:
18-
19-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
- Trolling, insulting/derogatory comments, and personal or political attacks
21-
- Public or private harassment
22-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
- Other conduct which could reasonably be considered inappropriate in a professional setting
24-
25-
## Our Responsibilities
26-
27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28-
29-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30-
31-
## Scope
32-
33-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34-
35-
## Enforcement
36-
37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38-
39-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40-
41-
## Attribution
42-
43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
44-
45-
[homepage]: https://www.contributor-covenant.org
1+
# Code Of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, political party, or sexual identity and orientation. Note, however, that religion, political party, or other ideological affiliation provide no exemptions for the behavior we outline as unacceptable in this Code of Conduct.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
44+
45+
[homepage]: https://www.contributor-covenant.org

src/community/partners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Vue Partners are premium shops that provide first-class Vue consulting and devel
44

55
## Active Partners
66

7-
<community-partners-index/>
7+
<community-partners-index/>

src/community/team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Meet the Team
22

3-
<community-team-index/>
3+
<community-team-index/>

src/community/themes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Themes
22

3-
<community-themes-index/>
3+
<community-themes-index/>

src/guide/a11y-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The World Health Organization estimates that 15% of the world's population has s
4040
There are a huge range of disabilities, which can be divided roughly into four categories:
4141

4242
- _[Visual](https://webaim.org/articles/visual/)_ - These users can benefit from the use of screen readers, screen magnification, controlling screen contrast, or braille display.
43-
- _[Auditory](https://webaim.org/articles/auditory/)_ - These users can benefit from captioning, transcripts or sign language video.
43+
- _[Auditory](https://webaim.org/articles/auditory/)_ - These users can benefit from captioning, transcripts or sign language video.
4444
- _[Motor](https://webaim.org/articles/motor/)_ - These users can benefit from a range of [assistive technologies for motor impairments](https://webaim.org/articles/motor/assistive): voice recognition software, eye tracking, single-switch access, head wand, sip and puff switch, oversized trackball mouse, adaptive keyboard or other assistive technologies.
4545
- _[Cognitive](https://webaim.org/articles/cognitive/)_ - These users can benefit from supplemental media, structural organization of content, clear and simple writing.
4646

src/guide/composition-api-template-refs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ But a key difference to lifecycle hooks is that `watch()` and `watchEffect()` ef
105105
const root = ref(null)
106106
107107
watchEffect(() => {
108-
// This effect runs before the DOM is updated, and consequently,
108+
// This effect runs before the DOM is updated, and consequently,
109109
// the template ref does not hold a reference to the element yet.
110110
console.log(root.value) // => null
111111
})

src/guide/contributing/doc-style-guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default {
6464
````
6565

6666
**Rendered Output**
67+
6768
```js
6869
export default {
6970
name: 'MyComponent'

src/guide/migration/array-refs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: v-for Array Refs
33
badges:
4-
- breaking
4+
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />

src/guide/migration/v-bind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ When dynamically binding attributes on an element, a common scenario involves us
1616

1717
## 2.x Syntax
1818

19-
In 2.x, if an element has both `v-bind="object"` and an identical individual property defined, the individual property would always overwrite bindings in the `object`.
19+
In 2.x, if an element has both `v-bind="object"` and an identical individual property defined, the individual property would always overwrite bindings in the `object`.
2020

2121
```html
2222
<!-- template -->

src/guide/reactivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ But knowing what code is running is just one part of the puzzle. How does Vue kn
9898

9999
We can't track reassignments of local variables like those in our earlier examples, there's just no mechanism for doing that in JavaScript. What we can track are changes to object properties.
100100

101-
When we return a plain JavaScript object from a component's `data` function, Vue will wrap that object in a [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) with handlers for `get` and `set`. Proxies were introduced in ES6 and allow Vue 3 to avoid some of the reactivity caveats that existed in earlier versions of Vue.
101+
When we return a plain JavaScript object from a component's `data` function, Vue will wrap that object in a [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) with handlers for `get` and `set`. Proxies were introduced in ES6 and allow Vue 3 to avoid some of the reactivity caveats that existed in earlier versions of Vue.
102102

103103
<div class="reactivecontent">
104104
<common-codepen-snippet title="Proxies and Vue's Reactivity Explained Visually" slug="VwmxZXJ" tab="result" theme="light" :height="500" :editable="false" :preview="false" />

src/guide/single-file-component.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Most of the time when developing a third-party library we want to build it in a
7575
We will need to install Rollup and a few dependencies:
7676

7777
```bash
78-
npm install --save-dev rollup @rollup/plugin-commonjs rollup-plugin-vue
78+
npm install --save-dev rollup @rollup/plugin-commonjs rollup-plugin-vue
7979
```
8080

8181
These are the minimal amount of rollup plugins that we need to use to compile the code in an `esm` module. We may want to also add [rollup-plugin-babel](https://github.com/rollup/plugins/tree/master/packages/babel) to transpile their code and [node-resolve](https://github.com/rollup/plugins/tree/master/packages/node-resolve) if we use dependencies that we want to bundle with our library.
@@ -100,7 +100,7 @@ export default {
100100
// this is the file containing all our exported components/functions
101101
input: 'src/index.js',
102102
// this is an array of outputted formats
103-
output: [
103+
output: [
104104
{
105105
file: pkg.module, // the name of our esm library
106106
format: 'esm', // the format of choice
@@ -143,7 +143,8 @@ Here we are specifying:
143143

144144
To also build `umd` and `cjs` modules we can simply add a few lines of configuration to our `rollup.config.js` and `package.json`
145145

146-
##### rollup.config.js
146+
##### rollup.config.js
147+
147148
```js
148149
output: [
149150
...
@@ -163,7 +164,9 @@ output: [
163164
},
164165
]
165166
```
167+
166168
##### package.json
169+
167170
```json
168171
"module": "dist/my-library-name.esm.js",
169172
"main": "dist/my-library-name.cjs.js",

src/guide/teleport.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Vue encourages us to build our UIs by encapsulating UI and related behavior into components. We can nest them inside one another to build a tree that makes up an application UI.
66

7-
However, sometimes a part of a component's template belongs to this component logically, while from a technical point of view, it would be preferable to move this part of the template somewhere else in the DOM, outside of the Vue app.
7+
However, sometimes a part of a component's template belongs to this component logically, while from a technical point of view, it would be preferable to move this part of the template somewhere else in the DOM, outside of the Vue app.
88

99
A common scenario for this is creating a component that includes a full-screen modal. In most cases, you'd want the modal's logic to live within the component, but the positioning of the modal quickly becomes difficult to solve through CSS, or requires a change in component composition.
1010

@@ -21,7 +21,7 @@ Consider the following HTML structure.
2121
</body>
2222
```
2323

24-
Let's take a look at `modal-button`.
24+
Let's take a look at `modal-button`.
2525

2626
The component will have a `button` element to trigger the opening of the modal, and a `div` element with a class of `.modal`, which will contain the modal's content and a button to self-close.
2727

@@ -44,7 +44,7 @@ app.component('modal-button', {
4444
</div>
4545
`,
4646
data() {
47-
return {
47+
return {
4848
modalOpen: false
4949
}
5050
}
@@ -55,7 +55,7 @@ When using this component inside the initial HTML structure, we can see a proble
5555

5656
Teleport provides a clean way to allow us to control under which parent in our DOM we want a piece of HTML to be rendered, without having to resort to global state or splitting this into two components.
5757

58-
Let's modify our `modal-button` to use `<teleport>` and tell Vue "**teleport** this HTML **to** the "**body**" tag".
58+
Let's modify our `modal-button` to use `<teleport>` and tell Vue "**teleport** this HTML **to** the "**body**" tag".
5959

6060
```js
6161
app.component('modal-button', {
@@ -77,7 +77,7 @@ app.component('modal-button', {
7777
</teleport>
7878
`,
7979
data() {
80-
return {
80+
return {
8181
modalOpen: false
8282
}
8383
}

0 commit comments

Comments
 (0)