Change presets configs and remove unused internal methods #1848
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.
Change Vue 3 presets configs
plugin:vue/vue3-essentialconfig:vue/no-child-contentrulevue/no-expose-after-awaitrulevue/no-reserved-component-namesrulevue/no-use-computed-property-like-methodrulevue/no-v-text-v-html-on-componentrulevue/prefer-import-from-vueruleplugin:vue/vue3-strongly-recommendedconfig:plugin:vue/vue3-recommendedconfig:Change Vue 2 preset configs
plugin:vue/essentialconfig:vue/no-child-contentrulevue/no-reserved-component-namesrulevue/no-use-computed-property-like-methodrulevue/no-v-text-v-html-on-componentrulevue/valid-model-definitionrulevue/no-export-in-script-setuprule *vue/no-ref-as-operandrule *vue/no-setup-props-destructurerule *vue/return-in-emits-validatorrule *vue/valid-define-emitsrule *vue/valid-define-propsrule *plugin:vue/strongly-recommendedconfig:plugin:vue/recommendedconfig:Note: The rules marked with * are now included in the
plugin:vue/essentialconfig because @vue/composition-api and unplugin-vue2-script-setup add (limited) support for these Vue 3 features in Vue 2. If you don't use those libraries, enabling these rules shouldn't affect you.Rename rules
vue/no-invalid-model-keysrule tovue/valid-model-definitionInternal changes
Also, remove unused internal methods:
getComponentPropsutil method: usegetComponentPropsFromOptionsinstead.getComponentEmitsutil method: usegetComponentEmitsFromOptionsinstead.