v7.0.0-alpha.6
Pre-release
Pre-release
·
911 commits
to master
since this release
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig - Changed
plugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- Changed
plugin:vue/vue3-recommendedconfig- Same changes as above.
- #1179 Added
vue/no-multiple-slot-argsrule.
- Changed
plugin:vue/recommendedconfig- #1179 Added
vue/no-multiple-slot-argsrule.
- #1179 Added
- Changed
- #1189 Changed the default order option for
vue/component-tags-orderrule. - #1181 Changed the default order option for
vue/order-in-componentsrule.- Add options for Vue.js 3.x
emitsto afterprops.setupto afteremits.beforeUnmountandunmountedto LIFECYCLE_HOOKS.renderTrackedandrenderTriggeredto LIFECYCLE_HOOKS.
- Add options for Vue.js 2.x
provideandinjectto aftermixins.errorCapturedto LIFECYCLE_HOOKS.
- Add options for Vue.js 3.x
✨ Enhancements
New Rules:
- #1177 Added
vue/no-deprecated-dollar-scopedslots-apirule that reports use of deprecated$scopedSlots. RFC0006 - #1178 Added
vue/require-slots-as-functionsrule enforces the properties of $slots to be used as a function. RFC0006 - #1179 Added
vue/no-multiple-slot-argsrule disallows to pass multiple arguments to scoped slots. - #1185 Added
vue/no-bare-strings-in-templaterule that disallows the use of bare strings in<template>. - #1186 Added
vue/no-useless-v-bindrule that reportsv-bindwith a string literal value. - #1187 Added
vue/no-useless-mustachesrule that reports mustache interpolation with a string literal value. - #1191 Added
vue/no-restricted-v-bindrule that disallow specific argument inv-bind. - #1192 Added
vue/no-restricted-static-attributerule that disallow specific attribute. - #1193 Added
vue/object-property-newlinerule that appliesobject-property-newlinerule to expressions in<template>. - #1194 Added
vue/object-curly-newlinerule that appliesobject-curly-newlinerule to expressions in<template>. - #1200 Added
vue/operator-linebreakrule that appliesoperator-linebreakrule to expressions in<template>. - #1201 Added
vue/func-call-spacingrule that appliesfunc-call-spacingrule to expressions in<template>.
Other changes in Rules:
- #1180 Changed
vue/no-ref-as-operandrule to additionally track variables generated bycomputed,toRef,customRefandshallowRef. - #1180 Changed
vue/no-ref-as-operandrule to report incorrect use ofTemplateLiteralandMemberExpression. - #1183 Improved autofix of
vue/order-in-componentsrule 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-slotandvue/valid-v-textrules. - #1189 Changed
vue/component-tags-orderrule to allow name array to be specified with one order option.
🐛 Bug Fixes
- #1190 Fixed false positives for getter/setter in
vue/no-dupe-keysrule. - #1198 Fixed false positives for render props and template refs in
vue/no-unused-propertiesrule. - #1199 Fixed false positives for Vue 3 functional component in
vue/require-direct-exportrule.
All commits: v7.0.0-alpha.5 -> v7.0.0-alpha.6