Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add suppor for
v-model
API changesv-model:argument
syntax (replacement forv-bind.sync
)v-model.customModifier
syntaxRelates to:
#1035
RFC0005
RFC0011
Scope:
vue/valid-v-model
- modify rule implementation to do not report an error when:v-model
is used with an argument on Vue Component. (v-model:argument
syntax)v-model
is used with custom modifiers on Vue Component. (v-model. customModifier
syntax)vue/no-v-model-argument
- new rule which reports an error whenv-model
is used with an argument on Vue Component (Vue 2 backward compatibility rule, previously handled byvue/valid-v-model
)vue/no-deprecated-v-bind-sync
- new rule which reports an error when deprecated.sync
modifier is used onv-bind
directive.vue/no-custom-modifiers-on-v-model
- new rule which reports an error when v-model is used with custom modifiers on Vue Component (Vue 2 backward compatibility rule, previously handled by vue/valid-v-model)Clarification needed:
v-bind.sync="xxx"
).According to RFC it's not clear which option was selected for the final implementation. Testing that with
Vue 3.0.0-alpha.3
it seems that spread onv-model
is currently not supported, nevertheless, it requires additional confirmation before merge.