💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essential
config- #1211 Added
vue/no-deprecated-destroyed-lifecycle
rule.
- #1211 Added
- Changed
plugin:vue/vue3-strongly-recommended
config- Same changes as above.
- Changed
plugin:vue/vue3-recommended
config- Same changes as above.
- Changed
- #1107 Changed the default order option for
vue/order-in-components
rule. Add Nuxt and Vue Router properties.- Add options for Vue Router
- ROUTER_GUARDS (
beforeRouteEnter
,beforeRouteUpdate
andbeforeRouteLeave
) to after["provide", "inject"]
.
- ROUTER_GUARDS (
- Add options for Nuxt
key
to aftername
.layout
,middleware
,validate
,scrollToTop
,transition
,loading
to after ROUTER_GUARDS (ROUTER_GUARDS was added after["provide", "inject"]
).watchQuery
to afterwatch
.
- Change options for Nuxt
head
move from aftermethods
to afterdata
.
- Add options for Vue Router
- #1214 Change the option name in the
vue/no-bare-strings-in-template
rule.
✨ Enhancements
New Rules:
- #1211 Added
vue/no-deprecated-destroyed-lifecycle
rule reports use of deprecateddestroyed
andbeforeDestroy
lifecycle hooks. - #1213 Added
vue/no-restricted-component-options
rule that disallow specific component options. - #1218 Added
vue/no-multiple-objects-in-class
rule disallows to pass multiple objects into array to class. - #1222 Added
vue/no-empty-component-block
rule disallows the<template>
<script>
<style>
block to be empty.
Other changes in Rules:
- #1204 Added
ignoreIncludesComment
option tovue/v-on-function-call
rule. - #1017 Added supports for ES2020 syntaxes to
vue/html-indent
andvue/script-indent
rules. - #1212 Added
"v-model-argument"
and"v-model-custom-modifiers"
to the syntax checked by thevue/no-unsupported-features
rule.
🐛 Bug Fixes
- #1204 Fixed wrong autofix in
vue/v-on-function-call
rule. - #1208 Fixed false negatives for TemplateLiteral in
vue/prop-name-casing
rule. - #1206 Fixed crash when
is
attribute with no value invue/no-unused-components
rule.
⚙️ Chores
- #1206 Added JSDoc type checking with TypeScript, and refactoring.
All commits: v7.0.0-alpha.6 -> v7.0.0-alpha.7