Skip to content

Commit d01cff1

Browse files
committed
valid-next-tick to essential
1 parent 08c471f commit d01cff1

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

docs/rules/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
9090
| [vue/use-v-on-exact](./use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` | |
9191
| [vue/valid-define-emits](./valid-define-emits.md) | enforce valid `defineEmits` compiler macro | |
9292
| [vue/valid-define-props](./valid-define-props.md) | enforce valid `defineProps` compiler macro | |
93+
| [vue/valid-next-tick](./valid-next-tick.md) | enforce valid `nextTick` function calls | :wrench: |
9394
| [vue/valid-template-root](./valid-template-root.md) | enforce valid template root | |
9495
| [vue/valid-v-bind](./valid-v-bind.md) | enforce valid `v-bind` directives | |
9596
| [vue/valid-v-cloak](./valid-v-cloak.md) | enforce valid `v-cloak` directives | |
@@ -203,6 +204,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
203204
| [vue/require-valid-default-prop](./require-valid-default-prop.md) | enforce props default values to be valid | |
204205
| [vue/return-in-computed-property](./return-in-computed-property.md) | enforce that a return statement is present in computed property | |
205206
| [vue/use-v-on-exact](./use-v-on-exact.md) | enforce usage of `exact` modifier on `v-on` | |
207+
| [vue/valid-next-tick](./valid-next-tick.md) | enforce valid `nextTick` function calls | :wrench: |
206208
| [vue/valid-template-root](./valid-template-root.md) | enforce valid template root | |
207209
| [vue/valid-v-bind-sync](./valid-v-bind-sync.md) | enforce valid `.sync` modifier on `v-bind` directives | |
208210
| [vue/valid-v-bind](./valid-v-bind.md) | enforce valid `v-bind` directives | |
@@ -339,7 +341,6 @@ For example:
339341
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: |
340342
| [vue/v-for-delimiter-style](./v-for-delimiter-style.md) | enforce `v-for` directive's delimiter style | :wrench: |
341343
| [vue/v-on-function-call](./v-on-function-call.md) | enforce or forbid parentheses after method calls without arguments in `v-on` directives | :wrench: |
342-
| [vue/valid-next-tick](./valid-next-tick.md) | enforce valid `nextTick` function calls | :wrench: |
343344

344345
### Extension Rules
345346

docs/rules/valid-next-tick.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ since: v7.5.0
99

1010
> enforce valid `nextTick` function calls
1111
12+
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`.
1213
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
1314

1415
## :book: Rule Details

lib/configs/essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
'vue/require-valid-default-prop': 'error',
3333
'vue/return-in-computed-property': 'error',
3434
'vue/use-v-on-exact': 'error',
35+
'vue/valid-next-tick': 'error',
3536
'vue/valid-template-root': 'error',
3637
'vue/valid-v-bind-sync': 'error',
3738
'vue/valid-v-bind': 'error',

lib/configs/vue3-essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module.exports = {
5757
'vue/use-v-on-exact': 'error',
5858
'vue/valid-define-emits': 'error',
5959
'vue/valid-define-props': 'error',
60+
'vue/valid-next-tick': 'error',
6061
'vue/valid-template-root': 'error',
6162
'vue/valid-v-bind': 'error',
6263
'vue/valid-v-cloak': 'error',

lib/rules/valid-next-tick.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ module.exports = {
119119
type: 'problem',
120120
docs: {
121121
description: 'enforce valid `nextTick` function calls',
122-
// categories: ['vue3-essential', 'essential'],
123-
categories: undefined,
122+
categories: ['vue3-essential', 'essential'],
124123
url: 'https://eslint.vuejs.org/rules/valid-next-tick.html'
125124
},
126125
fixable: 'code',

0 commit comments

Comments
 (0)