Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v7.0.0-beta.2
💥 Breaking Changes
- #1268 Changed the default order option for
vue/order-in-componentsrule.- Change options for Nuxt
fetchmove from aftersetupto afterdata.
- Change options for Nuxt
All commits: v7.0.0-beta.1 -> v7.0.0-beta.2
v7.0.0-beta.1
✨ Enhancements
New Rules:
- #1267 Added
vue/v-for-delimiter-stylerule that enforces which delimiter (inorof) should be used inv-fordirectives.
Other changes in Rules:
- #1259 Added
allowPropsoption tovue/require-explicit-emitsrule.
🐛 Bug Fixes
- #1258 Fixed false negatives of "slot-scope" when "^3.0.0" is set in
vue/no-unsupported-featuresrule. - #1262 Fixed reporting "Use the latest vue-eslint-parser" message in non-vue files.
All commits: v7.0.0-beta.0 -> v7.0.0-beta.1
v7.0.0-beta.0
💥 Breaking Changes
- #1209 Change supported version of ESLint from 6.0.0 to 6.2.0.
- Updated presets configs.
- #1209 Change presets configs
parserOptions.ecmaVersionto 2020. - Changed
plugin:vue/vue3-essentialconfig- #1253 Added
vue/valid-v-isrule.
- #1253 Added
- Changed
plugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- #1251 Added
vue/require-explicit-emitsrule.
- Changed
plugin:vue/vue3-recommendedconfig- Same changes as above.
- #1209 Change presets configs
✨ Enhancements
New Rules:
- #1253 Added
vue/valid-v-isrule that reports wrong usage ofv-isdirectives.
Other changes in Rules:
- #1209 Supports Optional Chaining (ES2020)
- #1254 Changed the
vue/attributes-orderrule to handlev-isasDEFINITIONcategory. - #1254 Changed the
vue/no-unregistered-componentsrule to handlev-islike:is. - #1254 Changed the
vue/no-unused-componentsrule to handlev-islike:is. - #1254 Added
"v-is"to the syntax checked by thevue/no-unsupported-featuresrule.
🐛 Bug Fixes
- #1255 Fixed false positives for watch handler methods in
vue/no-unused-propertiesrule.
All commits: v7.0.0-alpha.10 -> v7.0.0-beta.0
v7.0.0-alpha.10
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig- #1239 Added
vue/no-dupe-v-else-ifrule.
- #1239 Added
- Changed
plugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- Changed
plugin:vue/vue3-recommendedconfig- Same changes as above.
- #1238 Added
vue/no-lone-templaterule.
- Changed
plugin:vue/essentialconfig- #1239 Added
vue/no-dupe-v-else-ifrule.
- #1239 Added
- Changed
plugin:vue/strongly-recommendedconfig- Same changes as above.
- Changed
plugin:vue/recommendedconfig- Same changes as above.
- #1238 Added
vue/no-lone-templaterule.
- #1237 Removed
jsx:truefrom shareable configs.
- Changed
✨ Enhancements
New Rules:
- #1238 Added
vue/no-lone-templaterule that disallow unnecessary<template>element. - #1239 Added
vue/no-dupe-v-else-ifrule that disallow duplicate conditions inv-if/v-else-ifchains. - #1243 Added
vue/no-sparse-arraysrule that appliesno-sparse-arraysrule to expressions in<template>.
Other changes in Rules:
- #1225 Changed
vue/no-ref-as-operandto also checkrefof@vue/composition-api.
🐛 Bug Fixes
- #1242 Fixed
vue/no-unused-properties,vue/require-valid-default-prop,vue/require-default-propandvue/no-multiple-objects-in-classrules crash on sparse arrays.
⚙️ Updates
- #1237 Removed
jsx:truefrom shareable configs.
All commits: v7.0.0-alpha.9 -> v7.0.0-alpha.10
v7.0.0-alpha.9
🐛 Bug Fixes
- #1232 Fixed crash when using
vue/no-empty-component-blockandvue/padding-line-between-blocksrules in.jsfile
All commits: v7.0.0-alpha.8 -> v7.0.0-alpha.9
v7.0.0-alpha.8
🐛 Bug Fixes
- #1226 #1227 Fixed crash in the
vue/no-side-effects-in-computed-properties,vue/no-async-in-computed-properties,vue/no-setup-props-destructureandvue/no-watch-after-awaitrules.
All commits: v7.0.0-alpha.7 -> v7.0.0-alpha.8
v7.0.0-alpha.7
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig- #1211 Added
vue/no-deprecated-destroyed-lifecyclerule.
- #1211 Added
- Changed
plugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- Changed
plugin:vue/vue3-recommendedconfig- Same changes as above.
- Changed
- #1107 Changed the default order option for
vue/order-in-componentsrule. Add Nuxt and Vue Router properties.- Add options for Vue Router
- ROUTER_GUARDS (
beforeRouteEnter,beforeRouteUpdateandbeforeRouteLeave) to after["provide", "inject"].
- ROUTER_GUARDS (
- Add options for Nuxt
keyto aftername.layout,middleware,validate,scrollToTop,transition,loadingto after ROUTER_GUARDS (ROUTER_GUARDS was added after["provide", "inject"]).watchQueryto afterwatch.
- Change options for Nuxt
headmove from aftermethodsto afterdata.
- Add options for Vue Router
- #1214 Change the option name in the
vue/no-bare-strings-in-templaterule.
✨ Enhancements
New Rules:
- #1211 Added
vue/no-deprecated-destroyed-lifecyclerule reports use of deprecateddestroyedandbeforeDestroylifecycle hooks. - #1213 Added
vue/no-restricted-component-optionsrule that disallow specific component options. - #1218 Added
vue/no-multiple-objects-in-classrule disallows to pass multiple objects into array to class. - #1222 Added
vue/no-empty-component-blockrule disallows the<template><script><style>block to be empty.
Other changes in Rules:
- #1204 Added
ignoreIncludesCommentoption tovue/v-on-function-callrule. - #1017 Added supports for ES2020 syntaxes to
vue/html-indentandvue/script-indentrules. - #1212 Added
"v-model-argument"and"v-model-custom-modifiers"to the syntax checked by thevue/no-unsupported-featuresrule.
🐛 Bug Fixes
- #1204 Fixed wrong autofix in
vue/v-on-function-callrule. - #1208 Fixed false negatives for TemplateLiteral in
vue/prop-name-casingrule. - #1206 Fixed crash when
isattribute with no value invue/no-unused-componentsrule.
⚙️ Chores
- #1206 Added JSDoc type checking with TypeScript, and refactoring.
All commits: v7.0.0-alpha.6 -> v7.0.0-alpha.7
v7.0.0-alpha.6
💥 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
v7.0.0-alpha.5
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/essentialconfig andplugin:vue/vue3-essentialconfig- #1166 Added
vue/custom-event-name-casingrule
- #1166 Added
- Changed
plugin:vue/strongly-recommendedconfig andplugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- Changed
plugin:vue/recommendedconfig andplugin:vue/vue3-recommendedconfig- Same changes as above.
- Changed
✨ Enhancements
Core:
- #1167 Added
reportUnusedDisableDirectivesoption tovue/comment-directive.
New Rules:
- #1166 Added
vue/custom-event-name-casingrule that enforces using kebab-case custom event names. - #1171 Added
vue/no-useless-concatrule that appliesno-useless-concatrule to expressions in<template>. - #1173 Added
vue/dot-notationrule that appliesdot-notationrule to expressions in<template>.
Other changes in Rules:
- #1162 Added
closeBracket.startTag,closeBracket.endTagandcloseBracket.selfClosingTagoptions tovue/html-indentrule.
So that the closeBracket offset value can be set for each tag type. - #1162 Changed
vue/html-indentrule to calculate the base point of the indent offset of the closing bracket of the end tag by the start tag.
🐛 Bug Fixes
- #1163 Fixed false negatives when using ignorePattern for
vue/no-unused-varrule. - #1164 Fixed false negatives when
v-forandv-slotmixed or use destructuring forvue/no-unused-varrule. - #1169 Fixed false positives for watch with properties in
vue/no-unused-propertiesrule. - #1170 Fixed an error for
v-slotinvue/comma-stylerule.
All commits: v7.0.0-alpha.4 -> v7.0.0-alpha.5
v7.0.0-alpha.4
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/essentialconfig andplugin:vue/vue3-essentialconfig - Changed
plugin:vue/strongly-recommendedconfig andplugin:vue/vue3-strongly-recommendedconfig- Same changes as above.
- #1149 Added
vue/one-component-per-filerule
- Changed
plugin:vue/recommendedconfig andplugin:vue/vue3-recommendedconfig- Same changes as above.
- Changed
✨ Enhancements
Core:
- #1152 Changed casing conversion logic to behave like Vue core logic.
New Rules:
- #627 #1144 Added
vue/no-duplicate-attr-inheritancerule that warn to applyinheritAttrs: falsewhen it detectsv-bind="$attrs"being used. - #871 #1145 Added
vue/no-unused-propertiesrule that report unused properties. - #633 #1148 Added
vue/no-mutating-propsrule that reports mutation of component props. - #1140 Added
vue/comma-spacingrule that appliescomma-spacingrule to expressions in<template>. - #1141 Added
vue/prefer-templaterule that appliesprefer-templaterule to expressions in<template>. - #1142 Added
vue/template-curly-spacingrule that appliestemplate-curly-spacingrule to expressions in<template>. - #671 Added
vue/one-component-per-filerule that checks if there is only one component per file. - #1072 Added
vue/no-potential-property-typorule that disallow a potential typo in your component options. - #1155 Added
vue/no-arrow-functions-in-watchrule that disallow use an arrow function to define a watcher. - #1157 Added
vue/space-in-parensrule that appliesspace-in-parensrule to expressions in<template>. - #1159 Added
vue/comma-stylerule that appliescomma-stylerule to expressions in<template>. - #1158 Added
vue/no-extra-parensrule that appliesno-extra-parensrule to expressions in<template>.
Other changes in Rules:
- #1143 Changed
vue/no-deprecated-dollar-listeners-apiandvue/no-deprecated-events-apirules to track thethisvariable. - #1154 Changed
vue/no-side-effects-in-computed-propertiesrule to track thethisvariable. - #1160 Changed
vue/require-valid-default-proprule to track thereturnstatement in thefunctiondefined indefault. - #1160 Changed
vue/require-valid-default-proprule to checkBigInt. - #1160 Improved the location of reporting errors in
vue/require-valid-default-proprule.
🐛 Bug Fixes
- #1139 Fixed false positives for target instance is given, in
vue/no-lifecycle-after-awaitrule. - #1138 Fixed false positives for arrow function in
vue/return-in-emits-validatorrule. - #1146 Fixed false positives for member call and autofix error in
vue/v-on-function-callrule. - #1152 Fixed some casing issues.
- #1154 #1283 Fixed false positives for spread elements in
vue/no-side-effects-in-computedrule.
All commits: v7.0.0-alpha.3 -> v7.0.0-alpha.4