This repository was archived by the owner on Dec 16, 2022. It is now read-only.
chore(deps): update dependency eslint-plugin-vue to v7 #523
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.
This PR contains the following updates:
6.2.2->7.20.05.2.2->7.20.0Release Notes
vuejs/eslint-plugin-vue
v7.20.0Compare Source
✨ Enhancements
vue/no-undef-propertiesrule that warns of using undefined properties.vue/no-computed-properties-in-datarule that disallow accessing computed properties indata().vue/no-use-computed-property-like-methodrule reports.vue/multi-word-component-namesrule to enforce multiple words in component names.vue/no-deprecated-router-link-tag-proprule that disallow using deprecatedtagproperty on<RouterLink>.🐛 Bug Fixes
vue/no-use-computed-property-like-methodrule.vue/valid-define-emitsandvue/valid-define-propsrules.⚙️ Updates
^6.2.0 || ^7.0.0 || ^8.0.0-0to^6.2.0 || ^7.0.0 || ^8.0.0.Full Changelog: vuejs/eslint-plugin-vue@v7.19.1...v7.20.0
v7.19.1Compare Source
🐛 Bug Fixes
83eab8d] Fixed false positives for vars inside functions invue/valid-define-emitsandvue/valid-define-propsrules. Picked from #1652Full Changelog: vuejs/eslint-plugin-vue@v7.19.0...v7.19.1
v7.19.0Compare Source
✨ Enhancements
vue/no-restricted-classrule that reports the classes you don't want to allow in the template.vue/no-useless-template-attributesrule that disallow useless attribute on<template>tags.🐛 Bug Fixes
vue/no-unused-propertiesrule.update:.All commits: v7.18.0 -> v7.19.0
v7.18.0Compare Source
✨ Enhancements
vue/component-api-stylerule that aims to make the API style you use to define Vue components consistent in your project.⚙️ Updates
vue/script-indentrule to support Class static block and typescript-eslint v5(rc)definePropsto follow vue v3.2.9.All commits: v7.17.0 -> v7.18.0
v7.17.0Compare Source
✨ Enhancements
vue/no-v-textrule that disallowv-textdirective.⚙️ Updates
Note that ESLint v8 beta support will be removed without notice once a stable version of ESLint v8 is released.
All commits: v7.16.0 -> v7.17.0
v7.16.0Compare Source
✨ Enhancements
vue/valid-v-memorule that enforce validv-memodirectives.vue/no-unsupported-featuresrule to support Vue 3.2 syntaxes.🐛 Bug Fixes
vue/script-setup-uses-varsrule.⚙️ Updates
vue/no-restricted-v-bindandvue/valid-v-bindrules to supportattrmodifier.All commits: v7.15.2 -> v7.16.0
v7.15.2Compare Source
🐛 Bug Fixes
vue/no-use-computed-property-like-methodrule.All commits: v7.15.1 -> v7.15.2
v7.15.1Compare Source
🐛 Bug Fixes
vue/no-reserved-keysrule.vue/require-default-proprule.All commits: v7.15.0 -> v7.15.1
v7.15.0Compare Source
✨ Enhancements
vue/no-use-computed-property-like-methodrule that disallows to use computed property like method.vue/block-langrule rule that disallows the use of languages other than those available in the your application for thelangattribute of block elements.vue/comma-spacingrule.vue/dot-notationrule.vue/eqeqeqrule.vue/func-call-spacingrule.vue/no-extra-parensrule.vue/no-restricted-syntaxrule.vue/no-useless-concatrule.vue/prefer-templaterule.vue/space-in-parensrule.vue/space-infix-opsrule.vue/space-unary-opsrule.vue/template-curly-spacingrule.🐛 Bug Fixes
vue/no-mutating-propsrule.⚙️ Updates
All commits: v7.14.0 -> v7.15.0
v7.14.0Compare Source
✨ Enhancements
vue/require-exposerule that enforces the component to explicitly declare the exposed properties to the component usingexpose.vue/no-unused-propertiesrule to supportexposevue/no-parsing-errorrule.vue/no-unused-propertiesrule.vue/script-setup-uses-varsrule.vue/no-unsupported-featuresrule.vue/valid-v-xxxrules.🐛 Bug Fixes
<script setup>invue/no-lifecycle-after-awaitrule.<script setup>invue/no-watch-after-awaitrule.<script setup>invue/no-restricted-call-after-awaitrule.semvercompatible with Node v8.All commits: v7.13.0 -> v7.14.0
v7.13.0Compare Source
✨ Enhancements
<script setup>vue/script-setup-uses-varsrule that will find variables in<script setup>used in<template>and mark them as used.vue/no-export-in-script-setuprule that disallows ES export in<script setup>.vue/valid-define-propsrule that reportsdefinePropscompiler macros in the following cases:definePropsare referencing locally declared variables.definePropshas both a literal type and an argument. e.g.defineProps<{/*props*/}>({/*props*/})definePropshas been called multiple times.definePropsandexport default {}.definePropsorexport default {}.vue/valid-define-emitsrule that reportsdefineEmitscompiler macros in the following cases:defineEmitsare referencing locally declared variables.defineEmitshas both a literal type and an argument. e.g.defineEmits<(e: 'foo')=>void>(['bar'])defineEmitshas been called multiple times.defineEmitsandexport default {}.defineEmitsorexport default {}.vue-eslint-parser.<script setup>.vue/no-mutating-propsrule.vue/no-reserved-keysrule.vue/no-async-in-computed-propertiesrule.vue/no-side-effects-in-computed-propertiesrule.vue/require-prop-type-constructorrule.vue/no-lifecycle-after-awaitrule.vue/require-valid-default-proprule.vue/return-in-emits-validatorrule.vue/require-default-proprule.vue/no-setup-props-destructurerule.vue/no-watch-after-awaitrule.vue/no-template-shadowrule.vue/prop-name-casingrule.vue/require-prop-typesrule.vue/require-explicit-emitsrule.vue/custom-event-name-casingrule.vue/no-boolean-defaultrule.vue/no-restricted-call-after-awaitrule.vue/no-restricted-propsrule.vue/no-unregistered-componentsrule.vue/no-unsupported-featuresrule.vue/no-unused-propertiesrule.vue/no-unused-refsrule.vue/require-emit-validatorrule.vue/require-name-propertyrule.vue/no-template-shadowrule to supportsetup().vue/no-unused-refsrule to supportsetup().🐛 Bug Fixes
⚙️ Updates
vue/experimental-script-setup-varsrule.All commits: v7.12.1 -> v7.13.0
v7.12.1Compare Source
🐛 Bug Fixes
vue/script-indentrule.All commits: v7.12.0 -> v7.12.1
v7.12.0Compare Source
✨ Enhancements
vue/script-indentrule to support TypeScript syntax.vue/script-indentrule andvue/html-indentrule to support ES2022 Class Fields syntax. (When using espree v8+.)🐛 Bug Fixes
vue/no-deprecated-slot-attributerule andvue/no-deprecated-slot-scope-attributerule.vue/no-deprecated-props-default-thisrule.⚙️ Updates
All commits: v7.11.1 -> v7.12.0
v7.11.1Compare Source
🐛 Bug Fixes
objectsInObjectsoption invue/object-curly-spacingrule.v7.11.0Compare Source
✨ Enhancements
New Rules:
vue/no-this-in-before-route-enterrule that disallowthisusage in abeforeRouteEntermethod.vue/no-deprecated-v-isrule that disallow deprecatedv-isdirective (in Vue.js 3.1.0+).Other changes in Rules:
vue/no-deprecated-destroyed-lifecyclerule to auto-fixable.⚙️ Updates
is="vue:"(Vue 3.1.0+).All commits: v7.10.0 -> v7.11.0
v7.10.0Compare Source
✨ Enhancements
New Rules:
vue/require-emit-validatorrule that enforce the validator definition in emits.Other changes in Rules:
vue/this-in-templaterule to support autofix.⚙️ Updates
vue/attribute-hyphenationrule to ignore SVG attributes.All commits: v7.9.0 -> v7.10.0
v7.9.0Compare Source
✨ Enhancements
New Rules:
vue/no-invalid-model-keysrule that disallow invalid model option keys.vue/no-unused-refsrule that reports refs that are defined using therefattribute in<template>but are not used via$refs.Other changes in Rules:
singleline.allowFirstLineoption tovue/max-attributes-per-linerule.🐛 Bug Fixes
asexpression forvue/require-valid-default-proprule.All commits: v7.8.0 -> v7.9.0
v7.8.0Compare Source
✨ Enhancements
vue/require-direct-exportrule to allow more cases (e.g.export default defineComponent({})).vue/valid-v-showrule to disallowv-showin<template>tag.v7.7.0Compare Source
✨ Enhancements
Changes in Rules:
ignorePublicMembersoption tovue/no-unused-propertiesrule.🐛 Bug Fixes
$invue/this-in-templaterule.⚙️ Updates
vue-eslint-parserto v7.6.0.This makes the parser to case sensitive to the name used to determine the element when the file is SFC.
All commits: v7.6.0 -> v7.7.0
v7.6.0Compare Source
✨ Enhancements
New Rules:
vue/html-button-has-typerule.Other changes in Rules:
"SLOT"option tovue/attributes-orderrule to specifyv-slotorder.vue/attributes-orderrule.vue/component-tags-orderrule.vue/max-attributes-per-linerule.vue/new-line-between-multi-line-propertyrule.vue/no-bare-strings-in-templaterule.vue/no-duplicate-attributesrule.vue/no-potential-component-option-typorule.vue/no-reserved-component-namesrule.vue/no-use-v-if-with-v-forrule.vue/no-useless-mustachesrule.vue/no-useless-v-bindrule.vue/valid-v-slotrule.vue/no-deprecated-slot-attributerule when slot name contains_.🐛 Bug Fixes
v-bind="object"invue/attributes-orderrule.⚙️ Updates
vue-eslint-parserto v7.5.0.This change fixes an issue that caused a crash when using some queries with
vue/no-restricted-syntaxrule.All commits: v7.5.0 -> v7.6.0
v7.5.0Compare Source
✨ Enhancements
New Rules:
vue/no-constant-conditionrule appliesno-constant-conditionrule to expressions in<template>,v-if,v-showandv-else-if.vue/next-tick-stylerule that enforces whether the callback version or Promise version should be used inVue.nextTickandthis.$nextTick.vue/valid-next-tickrule that enforce validnextTickfunction calls.Other changes in Rules:
vue/no-ref-as-operandrule fixable.🐛 Bug Fixes
computed()support tovue/no-async-in-computed-propertiesrule.computed()support tovue/return-in-computed-propertyrule.computed()support tovue/no-side-effects-in-computed-propertiesrule.vue/one-component-per-fileandvue/require-name-propertyrules.vue/no-unused-propertiesrule.⚙️ Updates
⚙️ Chores
vue/attributes-orderrule.vue/no-async-in-computed-propertiesrule.All commits: v7.4.1 -> v7.5.0
v7.4.1Compare Source
🐛 Bug Fixes
no-ref-as-operandruleAll commits: v7.4.0 -> v7.4.1
v7.4.0Compare Source
✨ Enhancements
New Rules:
vue/no-restricted-call-after-awaitrule that reports your restricted calls after theawaitexpression.vue/v-on-event-hyphenationrule that enforces using hyphenated v-on event names on custom components in Vue templates.vue/no-restricted-blockrule that allows you to specify block names that you don't want to use in your application.Other changes in Rules:
deepDataoption tovue/no-unused-propertiesrule.🐛 Bug Fixes
vue/no-unregistered-componentrule.v-bind="object"syntax invue/attributes-orderrule.All commits: v7.3.0 -> v7.4.0
v7.3.0Compare Source
✨ Enhancements
vue/new-line-between-multiline-propertyrule that enforces new lines between multi-line properties.vue/no-restricted-propsrule that disallows prop names that you don't want to use.vue/no-restricted-custom-eventrule that disallows custom event names that you don't want to use.⚙️ Updates
All commits: v7.2.0 -> v7.3.0
v7.2.0Compare Source
✨ Enhancements
vue/custom-event-name-casingrule.⚙️ Updates
vue/custom-event-name-casingrule from"plugin:vue/essential"and"plugin:vue/vue3-essential"configurations🐛 Bug Fixes
isattr invue/valid-v-bind-syncrule.vue/valid-v-slotrulevue/valid-v-slotandvue/valid-v-modelrulevue/no-arrow-functions-in-watchrulevue/v-on-function-callrule.All commits: v7.1.0 -> v7.2.0
v7.1.0Compare Source
✨ Enhancements
New Rules:
vue/block-tag-newlinerule that enforces a line break (or no line break) after opening and before closing block tags.vue/array-bracket-newlinerule appliesarray-bracket-newlinerule to expressions in<template>.Other changes in Rules:
ignoresoption tovue/custom-event-name-casingrule.allowModifiersoption tovue/valid-v-slotrule.🐛 Bug Fixes
vue/no-unregistered-componentsrule.vue/no-unused-properties⚙️ Updates
⚙️ Chores
All commits: v7.0.1 -> v7.1.0
v7.0.1Compare Source
🐛 Bug Fixes
All commits: v7.0.0 -> v7.0.1
v7.0.0Compare Source
🚀 Highlight
💥 Breaking Changes
plugin:vue/baseconfig.jsx:truefrom shareable configs.parserOptions.ecmaVersionto 2020.vue/experimental-script-setup-varsrule.plugin:vue/essentialconfig.vue/valid-v-bind-syncrule.vue/valid-v-slotrule.vue/no-custom-modifiers-on-v-modelrule.vue/no-multiple-template-rootrule.vue/no-v-model-argumentrule.vue/no-mutating-propsrule.vue/no-arrow-functions-in-watchrule.vue/custom-event-name-casingrule.vue/no-dupe-v-else-ifrule.vue/no-v-for-template-keyrule.plugin:vue/strongly-recommendedconfig.vue/component-definition-name-casingrule.vue/v-slot-stylerule.vue/name-property-casingrule.vue/one-component-per-filerule.plugin:vue/recommendedconfig.vue/component-tags-orderrule.vue/no-multiple-slot-argsrule.vue/no-lone-templaterule.vue/name-property-casingrule to be deprecate.vue/order-in-componentsrule.emitsto afterprops.setupto afteremits.beforeUnmountandunmountedto LIFECYCLE_HOOKS.renderTrackedandrenderTriggeredto LIFECYCLE_HOOKS.provideandinjectto aftermixins.errorCapturedto LIFECYCLE_HOOKS.beforeRouteEnter,beforeRouteUpdateandbeforeRouteLeave) to afterprovide / inject(provide / injectwas added aftermixins).keyto aftername.layout,middleware,validate,scrollToTop,transition,loadingto after ROUTER_GUARDS (ROUTER_GUARDS was added afterprovide / inject).watchQueryto afterwatch.headmove from aftermethodsto afterdata.fetchmove from afterprops / propsDatato afterdata.✨ Enhancements
Core:
plugin:vue/essentialconfig.plugin:vue/strongly-recommendedconfig.plugin:vue/recommendedconfig.New Rulesets:
plugin:vue/vue3-essentialconfig.plugin:vue/vue3-strongly-recommendedconfig.plugin:vue/vue3-recommendedconfig.New Rules:
for Vue.js 3.x:
vue/no-deprecated-v-bind-syncrule that reports when deprecated.syncmodifier is used onv-binddirective. Related to [RFC0005]vue/no-deprecated-filterrule that reports usage of filters syntax removed in Vue.js 3.0.0+. Related to [RFC0015]vue/no-ref-as-operandrule that reports cases where a ref is used incorrectly as an operand. Related to [RFC0013]vue/no-setup-props-destructurerule that reports the destructuring of props passed to setup causing the value to lose reactivity. Related to [RFC0013]vue/no-lifecycle-after-awaitrule that reports the lifecycle hooks after await expression. Related to [RFC0013]vue/no-deprecated-v-on-number-modifiersrule that reports use of deprecatedKeyboardEvent.keyCodemodifier onv-ondirective. Related to [RFC0014]vue/no-deprecated-data-object-declarationrule that reports use of deprecated object declaration ondataproperty. Related to [RFC0019]vue/no-deprecated-events-apirule that reports use of deprecated$on,$offand$onceapi (removed in Vue.js v3.0.0+). Related to [RFC0020]vue/no-watch-after-awaitrule that reports thewatch()afterawaitexpression. [RFC0013]vue/require-toggle-inside-transitionrule that reports elements inside<transition>that do not control the display. Related to [RFC0017]vue/no-deprecated-inline-templaterule that reports deprecatedinline-templateattributes (removed in Vue.js v3.0.0+) Related to [RFC0016]vue/no-deprecated-html-element-isrule that reports deprecated the is attribute on HTML elements (removed in Vue.js v3.0.0+). Related to [RFC0027]vue/no-deprecated-vue-config-keycodesrule that reports use of deprecated Vue.config.keyCodes (removed in Vue.js 3.0.0+). Related to [RFC0014]vue/no-deprecated-functional-templaterule that reports deprecated the functional template (removed in Vue.js 3.0.0+). Related to [RFC0007]vue/require-explicit-emitsrule that reports event triggers not declared with the emits option. Related to [RFC0030]vue/return-in-emits-validatorrule enforces that a return statement is present in emits validators. Related to [RFC0030]vue/no-deprecated-v-on-native-modifierrule that reports use of deprecated.nativemodifier onv-ondirective. Related to [RFC0031]vue/no-deprecated-dollar-listeners-apirule that reports use of deprecated$listeners. Related to [RFC0031]vue/no-deprecated-dollar-scopedslots-apirule that reports use of deprecated$scopedSlots. Related to [RFC0006]vue/require-slots-as-functionsrule enforces the properties of $slots to be used as a function. Related to [RFC0006]vue/no-deprecated-destroyed-lifecyclerule reports use of deprecateddestroyedandbeforeDestroylifecycle hooks.vue/valid-v-isrule that reports wrong usage ofv-isdirectives.vue/no-v-for-template-key-on-childrule that reports the key of the<template v-for>placed on the child elements.vue/no-deprecated-props-default-thisrule that reports the use ofthiswithin the props default value factory functions.vue/experimental-script-setup-varsrule that prevent variables defined in<script setup>to be marked as undefined.for Vue.js 2.x:
vue/no-multiple-template-rootrule to template to check for a single root element. This rule has been separated from the previousvue/valid-template-rootrule.vue/no-v-model-argumentrule that does not allow argument to v-model.vue/no-custom-modifiers-on-v-modelrule that reports whenv-modelis used with custom modifiers on Vue Component.vue/no-v-for-template-keyrule that disallow the key placed on the<template v-for>. This rule has been separated from the previousvue/no-template-keyrule.Commons:
vue/no-template-no-target-blankrule that disallows usingtarget="_blank"attribute withoutrel="noopener noreferrer"to avoid a security vulnerability.vue/no-unregistered-componentsrule that disallow using components that are not registered inside templates.vue/html-comment-indentrule that enforce consistent indentation in HTML comments.vue/html-comment-content-newlinerule that enforce unified line brake in HTML comments.vue/html-comment-content-spacingrule that enforce unified spacing in HTML comments.vue/no-duplicate-attr-inheritancerule that warn to applyinheritAttrs: falsewhen it detectsv-bind="$attrs"being used.vue/no-unused-propertiesrule that report unused properties.vue/no-mutating-propsrule that reports mutation of component props.vue/one-component-per-filerule that checks if there is only one component per file.vue/no-potential-property-typorule that disallow a potential typo in your component options.vue/no-arrow-functions-in-watchrule that disallow use an arrow function to define a watcher.vue/custom-event-name-casingrule that enforces using kebab-case custom event names.vue/no-multiple-slot-argsrule disallows to pass multiple arguments to scoped slots.vue/no-bare-strings-in-templaterule that disallows the use of bare strings in<template>.vue/no-useless-v-bindrule that reportsv-bindwith a string literal value.vue/no-useless-mustachesrule that reports mustache interpolation with a string literal value.vue/no-restricted-v-bindrule that disallow specific argument inv-bind.vue/no-restricted-static-attributerule that disallow specific attribute.vue/no-restricted-component-optionsrule that disallow specific component options.vue/no-multiple-objects-in-classrule disallows to pass multiple objects into array to class.vue/no-empty-component-blockrule disallows the<template><script><style>block to be empty.vue/no-lone-templaterule that disallow unnecessary<template>element.vue/no-dupe-v-else-ifrule that disallow duplicate conditions inv-if/v-else-ifchains.vue/v-for-delimiter-stylerule that enforces which delimiter (inorof) should be used inv-fordirectives.Core Extends:
vue/comma-spacingrule that appliescomma-spacingrule to expressions in<template>.vue/prefer-templaterule that appliesprefer-templaterule to expressions in<template>.vue/template-curly-spacingrule that appliestemplate-curly-spacingrule to expressions in<template>.vue/space-in-parensrule that appliesspace-in-parensrule to expressions in<template>.vue/comma-stylerule that appliescomma-stylerule to expressions in<template>.vue/no-extra-parensrule that appliesno-extra-parensrule to expressions in<template>.vue/no-useless-concatrule that appliesno-useless-concatrule to expressions in<template>.vue/dot-notationrule that appliesdot-notationrule to expressions in<template>.vue/object-property-newlinerule that appliesobject-property-newlinerule to expressions in<template>.vue/object-curly-newlinerule that appliesobject-curly-newlinerule to expressions in<template>.vue/operator-linebreakrule that appliesoperator-linebreakrule to expressions in<template>.vue/func-call-spacingrule that appliesfunc-call-spacingrule to expressions in<template>.vue/no-sparse-arraysrule that appliesno-sparse-arraysrule to expressions in<template>.New Options:
ignorePatternoption tovue/no-unsed-varsrule to disables reporting of variable names that match the regular expression.disallowVueBuiltInComponentsanddisallowVue3BuiltInComponentsoption that reports Vue built-in component names to thevue/no-reserved-component-namesrule.reportUnusedDisableDirectivesoption tovue/comment-directive.closeBracket.startTag,closeBracket.endTagandcloseBracket.selfClosingTagoptions tovue/html-indentrule.So that the closeBracket offset value can be set for each tag type.
ignoreIncludesCommentoption tovue/v-on-function-callrule."v-model-argument"and"v-model-custom-modifiers"to the syntax checked by thevue/no-unsupported-featuresrule."v-is"to the syntax checked by thevue/no-unsupported-featuresrule.Other Changes in Rules:
for Vue.js 3.x:
vue/valid-template-rootrule.vue/valid-v-modelrule to allowv-modelargument. Related to [RFC0011]vue/valid-v-modelrule to allowv-modelcustom modifiers. Related to [RFC0011]vue/no-dupe-key,vue/no-reserved-keysrules to handlesetup.vue/require-direct-exportrule to allow Vue 3 functional component.vue/order-in-componentsrule.vue/attributes-orderrule to handlev-isasDEFINITIONcategory.vue/no-unregistered-componentsrule to handlev-islike:is.vue/no-unused-componentsrule to handlev-islike:is.slot-scopewhen"^3.0.0"is set invue/no-unsupported-featuresrule.vue/no-template-keyrule to allowv-forkey.vue/valid-v-forrule to not report when placing key on<template>.vue/require-v-for-keyrule to not report when placing key on<template>.Commons:
vue/name-property-casingrule to be deprecate.Configuration
📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.