💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essential
config - Changed
plugin:vue/vue3-strongly-recommended
config- Same changes as above.
- Changed
plugin:vue/vue3-recommended
config- Same changes as above.
- #1179 Added
vue/no-multiple-slot-args
rule.
- Changed
plugin:vue/recommended
config- #1179 Added
vue/no-multiple-slot-args
rule.
- #1179 Added
- Changed
- #1189 Changed the default order option for
vue/component-tags-order
rule. - #1181 Changed the default order option for
vue/order-in-components
rule.- Add options for Vue.js 3.x
emits
to afterprops
.setup
to afteremits
.beforeUnmount
andunmounted
to LIFECYCLE_HOOKS.renderTracked
andrenderTriggered
to LIFECYCLE_HOOKS.
- Add options for Vue.js 2.x
provide
andinject
to aftermixins
.errorCaptured
to LIFECYCLE_HOOKS.
- Add options for Vue.js 3.x
✨ Enhancements
New Rules:
- #1177 Added
vue/no-deprecated-dollar-scopedslots-api
rule that reports use of deprecated$scopedSlots
. RFC0006 - #1178 Added
vue/require-slots-as-functions
rule enforces the properties of $slots to be used as a function. RFC0006 - #1179 Added
vue/no-multiple-slot-args
rule disallows to pass multiple arguments to scoped slots. - #1185 Added
vue/no-bare-strings-in-template
rule that disallows the use of bare strings in<template>
. - #1186 Added
vue/no-useless-v-bind
rule that reportsv-bind
with a string literal value. - #1187 Added
vue/no-useless-mustaches
rule that reports mustache interpolation with a string literal value. - #1191 Added
vue/no-restricted-v-bind
rule that disallow specific argument inv-bind
. - #1192 Added
vue/no-restricted-static-attribute
rule that disallow specific attribute. - #1193 Added
vue/object-property-newline
rule that appliesobject-property-newline
rule to expressions in<template>
. - #1194 Added
vue/object-curly-newline
rule that appliesobject-curly-newline
rule to expressions in<template>
. - #1200 Added
vue/operator-linebreak
rule that appliesoperator-linebreak
rule to expressions in<template>
. - #1201 Added
vue/func-call-spacing
rule that appliesfunc-call-spacing
rule to expressions in<template>
.
Other changes in Rules:
- #1180 Changed
vue/no-ref-as-operand
rule to additionally track variables generated bycomputed
,toRef
,customRef
andshallowRef
. - #1180 Changed
vue/no-ref-as-operand
rule to report incorrect use ofTemplateLiteral
andMemberExpression
. - #1183 Improved autofix of
vue/order-in-components
rule to understand "Nullish Coalescing". - #1184 Changed to not report that a value is required when parsing error for
vue/valid-v-bind-sync
,vue/valid-v-bind
,vue/valid-v-else-if
,vue/valid-v-for
,vue/valid-v-html
,vue/valid-v-if
,vue/valid-v-model
,vue/valid-v-on
,vue/valid-v-show
,vue/valid-v-slot
andvue/valid-v-text
rules. - #1189 Changed
vue/component-tags-order
rule to allow name array to be specified with one order option.
🐛 Bug Fixes
- #1190 Fixed false positives for getter/setter in
vue/no-dupe-keys
rule. - #1198 Fixed false positives for render props and template refs in
vue/no-unused-properties
rule. - #1199 Fixed false positives for Vue 3 functional component in
vue/require-direct-export
rule.
All commits: v7.0.0-alpha.5 -> v7.0.0-alpha.6