vue/next-tick-style
eslint-plugin-vue
Safe autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/next-tick-style": "error",
},
},
];this.$nextTick(() => {})
Vue.nextTick(() => {})
import { nextTick } from 'vue'
nextTick(() => {})await this.$nextTick()
Vue.nextTick().then(() => {})this.$nextTick().then(() => {})
await Vue.nextTick()
import { nextTick } from 'vue'
await nextTick()this.$nextTick(() => {})
Vue.nextTick(() => {})Examples from the Oxlint documentation.
vue/next-tick-style
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/next-tick-style": "error",
},
},
];vue/next-tick-style
vue plugin · style
{
"plugins": [
"vue"
],
"rules": {
"vue/next-tick-style": "error"
}
}style/useVueNextTickPromise
style · since 2.4.15
{
"linter": {
"rules": {
"style": {
"useVueNextTickPromise": "error"
}
}
}
}Disallow importing Vue compiler macros
Enforce or forbid the use of the scoped and module attributes in SFC top level style tags
Enforce use of defineOptions instead of default export