Skip to content

Commit 143d896

Browse files
committed
Update links to v3 docs
1 parent 6a3070e commit 143d896

9 files changed

+17
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Be sure to read the [official ESLint guide](https://eslint.org/docs/developer-gu
2929

3030
To see what an abstract syntax tree (AST) of your code looks like, you may use [AST Explorer](https://astexplorer.net). After opening [AST Explorer](https://astexplorer.net), select `Vue` as the syntax and `vue-eslint-parser` as the parser.
3131

32-
The default JavaScript parser must be replaced because [Vue.js single file components](https://v3.vuejs.org/guide/single-file-component.html#single-file-components) are not plain JavaScript, but a custom file format. [`vue-eslint-parser`](https://github.com/vuejs/vue-eslint-parser) is a replacement parser that generates an enhanced AST with nodes that represent specific parts of the template syntax, as well as the contents of the `<script>` tag.
32+
The default JavaScript parser must be replaced because [Vue.js single file components](https://vuejs.org/guide/scaling-up/sfc.html) are not plain JavaScript, but a custom file format. [`vue-eslint-parser`](https://github.com/vuejs/vue-eslint-parser) is a replacement parser that generates an enhanced AST with nodes that represent specific parts of the template syntax, as well as the contents of the `<script>` tag.
3333

3434
To learn more about certain nodes in a produced AST, see the [ESTree project page](https://github.com/estree/estree) and the [vue-eslint-parser AST documentation](https://github.com/vuejs/vue-eslint-parser/blob/master/docs/ast.md).
3535

@@ -46,4 +46,4 @@ If you're stuck, remember there are many rules available for reference. If you c
4646

4747
## :lock: License
4848

49-
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
49+
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Official ESLint plugin for Vue.js.
99
This plugin allows us to check the `<template>` and `<script>` of `.vue` files with ESLint, as well as Vue code in `.js` files.
1010

1111
- Finds syntax errors.
12-
- Finds the wrong use of [Vue.js Directives](https://v3.vuejs.org/api/directives.html).
12+
- Finds the wrong use of [Vue.js Directives](https://vuejs.org/api/built-in-directives.html).
1313
- Finds the violation for [Vue.js Style Guide](https://vuejs.org/style-guide/).
1414

1515
ESLint editor integrations are useful to check your code in real-time.

docs/rules/component-api-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export default {
7979
```
8080

8181
- Array options ... Defines the API styles you want to allow. Default is `["script-setup", "composition"]`. You can use the following values.
82-
- `"script-setup"` ... If set, allows [`<script setup>`](https://v3.vuejs.org/api/sfc-script-setup.html).
83-
- `"composition"` ... If set, allows [Composition API](https://v3.vuejs.org/api/composition-api.html) (not `<script setup>`).
82+
- `"script-setup"` ... If set, allows [`<script setup>`](https://vuejs.org/api/sfc-script-setup.html).
83+
- `"composition"` ... If set, allows [Composition API](https://vuejs.org/api/#composition-api) (not `<script setup>`).
8484
- `"composition-vue2"` ... If set, allows [Composition API for Vue 2](https://github.com/vuejs/composition-api) (not `<script setup>`). In particular, it allows `render`, `renderTracked` and `renderTriggered` alongside `setup`.
8585
- `"options"` ... If set, allows Options API.
8686

docs/rules/custom-event-name-casing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default {
168168
- [Guide - Custom Events]
169169
- [Guide (for v2) - Custom Events]
170170

171-
[Guide - Custom Events]: https://v3.vuejs.org/guide/component-custom-events.html
171+
[Guide - Custom Events]: https://vuejs.org/guide/components/events.html
172172
[Guide (for v2) - Custom Events]: https://v2.vuejs.org/v2/guide/components-custom-events.html
173173

174174
## :couple: Related Rules

docs/rules/next-tick-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export default {
9494
- [`Vue.nextTick` API in Vue 2](https://v2.vuejs.org/v2/api/#Vue-nextTick)
9595
- [`vm.$nextTick` API in Vue 2](https://v2.vuejs.org/v2/api/#vm-nextTick)
9696
- [Global API Treeshaking](https://v3-migration.vuejs.org/breaking-changes/global-api-treeshaking.html)
97-
- [Global `nextTick` API in Vue 3](https://v3.vuejs.org/api/global-api.html#nexttick)
98-
- [Instance `$nextTick` API in Vue 3](https://v3.vuejs.org/api/instance-methods.html#nexttick)
97+
- [Global `nextTick` API in Vue 3](https://vuejs.org/api/general.html#nexttick)
98+
- [Instance `$nextTick` API in Vue 3](https://vuejs.org/api/component-instance.html#nexttick)
9999

100100
## :rocket: Version
101101

docs/rules/no-arrow-functions-in-watch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ since: v7.0.0
1313

1414
## :book: Rule Details
1515

16-
This rules disallows using arrow functions to defined watcher.The reason is arrow functions bind the parent context, so `this` will not be the Vue instance as you expect.([see here for more details](https://v3.vuejs.org/api/options-data.html#watch))
16+
This rules disallows using arrow functions to defined watcher.The reason is arrow functions bind the parent context, so `this` will not be the Vue instance as you expect.([see here for more details](https://vuejs.org/api/options-state.html#watch))
1717

1818
<eslint-code-block :rules="{'vue/no-arrow-functions-in-watch': ['error']}">
1919

docs/rules/no-child-content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ This rule reports child content of elements that have a directive which overwrit
4444

4545
## :books: Further Reading
4646

47-
- [`v-html` directive](https://v3.vuejs.org/api/directives.html#v-html)
48-
- [`v-text` directive](https://v3.vuejs.org/api/directives.html#v-text)
47+
- [`v-html` directive](https://vuejs.org/api/built-in-directives.html#v-html)
48+
- [`v-text` directive](https://vuejs.org/api/built-in-directives.html#v-text)
4949

5050
## :rocket: Version
5151

docs/rules/no-confusing-v-for-v-if.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In that case, the `v-if` should be written on the wrapper element.
5050
::: warning Note
5151
When they exist on the same node, `v-for` has a higher priority than `v-if`. That means the `v-if` will be run on each iteration of the loop separately.
5252

53-
[https://v3.vuejs.org/guide/list.html#v-for-with-v-if](https://v3.vuejs.org/guide/list.html#v-for-with-v-if)
53+
[https://vuejs.org/guide/essentials/list.html#v-for-with-v-if](https://vuejs.org/guide/essentials/list.html#v-for-with-v-if)
5454
:::
5555

5656
## :wrench: Options
@@ -60,8 +60,8 @@ Nothing.
6060
## :books: Further Reading
6161

6262
- [Style guide - Avoid v-if with v-for](https://vuejs.org/style-guide/rules-essential.html#avoid-v-if-with-v-for)
63-
- [Guide - Conditional Rendering / v-if with v-for](https://v3.vuejs.org/guide/conditional.html#v-if-with-v-for)
64-
- [Guide - List Rendering / v-for with v-if](https://v3.vuejs.org/guide/list.html#v-for-with-v-if)
63+
- [Guide - Conditional Rendering / v-if with v-for](https://vuejs.org/guide/essentials/conditional.html#v-if-with-v-for)
64+
- [Guide - List Rendering / v-for with v-if](https://vuejs.org/guide/essentials/list.html#v-for-with-v-if)
6565

6666
## :rocket: Version
6767

docs/rules/no-deprecated-v-is.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ since: v7.11.0
1616

1717
This rule reports deprecated `v-is` directive in Vue.js v3.1.0+.
1818

19-
Use [`is` attribute with `vue:` prefix](https://v3.vuejs.org/api/special-attributes.html#is) instead.
19+
Use [`is` attribute with `vue:` prefix](https://vuejs.org/api/built-in-special-attributes.html#is) instead.
2020

2121
<eslint-code-block fix :rules="{'vue/no-deprecated-v-is': ['error']}">
2222

@@ -41,7 +41,8 @@ Use [`is` attribute with `vue:` prefix](https://v3.vuejs.org/api/special-attribu
4141

4242
## :books: Further Reading
4343

44-
- [API - v-is](https://v3.vuejs.org/api/directives.html#v-is)
44+
- [Migration Guide - Custom Elements Interop](https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html#vue-prefix-for-in-dom-template-parsing-workarounds)
45+
- [API - v-is](https://vuejs.org/api/built-in-special-attributes.html#is)
4546
- [API - v-is (Old)](https://github.com/vuejs/docs-next/blob/008613756c3d781128d96b64a2d27f7598f8f548/src/api/directives.md#v-is)
4647

4748
## :rocket: Version

0 commit comments

Comments
 (0)