npm / eslint-plugin-vue
eslint-plugin-vue
What changed in eslint-plugin-vue 6 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
35 breaking1 security3 deprecations100 new APIs and options3 performance21 behavior and defaults8 tooling40 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initeslint-plugin-vue 1060 changes
Breaking changes 13
Treats Vue's special
<slot>and<template>elements as components rather than normal HTML elements.Detects refs identified through type information, including refs returned from composables, which may result in more lint issues.
Removes Reactivity Transform support because the Vue proposal was dropped.
The default for
destructurechanges from"always"to"only-when-assigned".The minimum supported versions are ^8.57.0 || ^9.0.0.
Renamed to match eslint.config.js config names.
Globals were removed from configs and may need to be configured manually.
The minimum supported versions are ^18.18.0 || ^20.9.0 || >=21.1.0.
The setup-compiler-macros environments were removed.
The rule's legacy option was removed.
Changed to a peer dependency and upgraded to v10.
The default order now includes slots and expose.
The unused runOutsideVue option was removed.
Deprecations 1
Vue 2 only rules are deprecated and will be removed in eslint-plugin-vue v11.
New APIs and options 12
Adds a
requiredoption to report components that omit a required block entirely.Adds a rule for reporting content outside blocks.
Adds a rule for reporting defaults in
defineModel.Adds a rule for reporting props shadowing.
Adds the
ignoreMixinsoption.A new rule is available to detect shadowed native events.
The rule now has an
allowLineSeparatedGroupsoption.Adds the
ignoreVBindObjectoption to the attributes-order rule.Adds the
destructure: "only-when-assigned"option value.Adds the
allowEmptyAliasoption to the valid-v-for rule.Added a rule that disallows importing Vue compiler macros.
Added the except option.
Performance 3
Improves performance by avoiding rebuilding reserved name sets for every file.
Improves the rule's performance and type safety.
The v10 upgrade includes a change that should make the parser much faster for large TypeScript projects.
Behavior and default changes 6
Provides a suggestion instead of an autofix when a fix would move a binding across
v-bind="object".Ignores
router-linkandnuxt-linkelements by default.The rule now supports defineModel.
The rule now supports template literals.
The rule recognizes more Promise functions in async computed properties.
The base config uses vue-eslint-parser only for .vue files.
Tooling 2
SFCs using @nuxtjs/composition-api are now treated the same as those using vue or @vue/composition-api.
The plugin now checks objects declared with Nuxt3 defineNuxtComponent().
Fixes and other changes 23
Reports
defineModel()names that collide with a prop, another model, or a<script setup>variable.Reports
<script setup>variables that shadow a prop while aliasing a different one.Reports multiple spaces in tags of some top-level blocks, such as
<script setup>.Checks refs created with
useTemplateRef().Fixes false positives for properties returned via
...toRefs(reactive({ ... }))fromsetup().Reports unused non-props properties in components that use
$propsas a whole.Checks every pair of adjacent properties when
withinOptionorwithinEachis not set.Handles defaults passed to
withDefaults()by reference or spread instead of an inline object literal.Avoids false positives when an explicit type annotation already applies to the
ref()call.Fixes a false positive for components with a bound
:key.Array rule option schemas now specify explicit items policies.
The resources for HTML elements were updated.
The rule no longer reports @keydown.stop when it is paired with an exact key-specific listener.
Checks segments of colon-separated event names such as update:foo-bar.
No longer reports functions not imported from Vue.
No longer reports imports or exports of names that are not re-exported by vue.
Does not report exhaustive switch statements when TypeScript type information is available.
Updated the peer dependency version to fix parsing errors in Vue SFCs.
Avoids false positives in non-intersecting conditions and correctly detects duplicates in combining expressions.
Fixes false positives for TSImportType in the rule.
Fixed false positives for comments outside <template> in this rule.
Type resolution for generic types was improved, along with rules for checking type-only macros.
Minor versions may enhance checks for new Vue and Nuxt features and update deprecated or reserved HTML and SVG element tag names.
eslint-plugin-vue 914 changes
Breaking changes 4
Node.js v12 is no longer supported.
Adds vue/no-child-content, vue/no-reserved-component-names, vue/no-use-computed-property-like-method, vue/no-v-text-v-html-on-component, vue/valid-attribute-name, vue/valid-model-definition, vue/no-export-in-script-setup, vue/no-ref-as-operand, vue/no-setup-props-destructure, vue/return-in-emits-validator, vue/valid-define-emits, and vue/valid-define-props.
The rule's default casing changes to camelCase.
The rule now applies to top-level tags.
Deprecations 1
The environment is deprecated because it is no longer needed with vue-eslint-parser v9.
New APIs and options 5
Adds the same rules as the essential preset.
Adds vue/no-child-content, vue/no-expose-after-await, vue/no-reserved-component-names, vue/no-use-computed-property-like-method, vue/no-v-text-v-html-on-component, vue/prefer-import-from-vue, and vue/valid-attribute-name.
Adds the same rules as the vue3-essential preset.
Adds the same rules as the vue3-essential preset.
A rule for validating attribute names is added.
Behavior and default changes 2
Adds the same rules as the essential preset.
The rule now supports <script setup>.
Tooling 1
The rule can now be fixed via editor suggestions.
Fixes and other changes 1
Fixes incorrect behavior when there are multiple <script> tags.
eslint-plugin-vue 815 changes
Breaking changes 7
Support was dropped for Node.js v8–10, v13, and v15.
The preset now includes vue/valid-next-tick, vue/no-useless-template-attributes, vue/no-computed-properties-in-data, vue/multi-word-component-names, and vue/no-reserved-props.
The preset includes the strongly-recommended changes.
The preset includes the essential changes, plus vue/first-attribute-linebreak.
The preset now includes vue/no-deprecated-v-is, vue/no-export-in-script-setup, vue/valid-define-emits, vue/valid-define-props, vue/valid-next-tick, vue/valid-v-memo, vue/no-useless-template-attributes, vue/no-computed-properties-in-data, vue/multi-word-component-names, vue/no-deprecated-router-link-tag-prop, and vue/no-reserved-props.
The preset includes the vue3-essential changes, plus vue/v-on-event-hyphenation and vue/first-attribute-linebreak.
The allowFirstLine option was removed.
New APIs and options 5
Added the setup-compiler-macros environment.
Added a rule to enforce a consistent location for the first attribute.
Added the ignore option.
Added a rule that applies no-loss-of-precision to expressions in <template>.
Added a rule that disallows reserved names from being used in props.
Behavior and default changes 2
Added support for Nuxt.js asyncData in vue/no-dupe-keys, vue/no-reserved-keys, vue/no-template-shadow, vue/no-undef-properties, and vue/no-unused-properties.
The preset includes the vue3-strongly-recommended changes.
Fixes and other changes 1
Fixed false positives for non-Vue files.
eslint-plugin-vue 7108 changes
Breaking changes 8
The base preset removes jsx:true, sets parserOptions.ecmaVersion to 2020, and adds vue/experimental-script-setup-vars.
The preset changes its configuration and adds rules including vue/valid-v-bind-sync, vue/valid-v-slot, and vue/no-mutating-props.
The preset changes its configuration and adds rules including vue/component-tags-order and vue/no-lone-template.
The preset changes its configuration, adds rules including vue/component-definition-name-casing, and removes vue/name-property-casing.
The default order option changes, and a name array can be specified with one order option.
Checks Vue 2 templates for a single root element; separated from vue/valid-template-root.
Disallows placing the key on a template v-for.
The default component order now includes Vue 3, Vue 2, Vue Router, and Nuxt properties, with several Nuxt properties moved.
Security 1
Disallows target="_blank" without rel="noopener noreferrer" to avoid a security vulnerability.
Deprecations 1
The rule is deprecated.
New APIs and options 72
Directive comments now support descriptions and block-level directives.
Adds a Vue 3 essential ruleset.
Adds a Vue 3 recommended ruleset.
Adds a Vue 3 strongly recommended ruleset.
Applies comma-spacing to expressions in templates.
Applies comma-style to expressions in templates.
Adds reportUnusedDisableDirectives.
Enforces kebab-case custom event names.
Applies dot-notation to expressions in templates.
Prevents variables defined in script setup from being marked as undefined.
Applies func-call-spacing to expressions in templates.
Enforces unified line breaks in HTML comments.
Enforces unified spacing in HTML comments.
Enforces consistent indentation in HTML comments.
Adds per-tag close bracket offset options for start, end, and self-closing tags.
Disallows defining a watcher with an arrow function.
Disallows bare strings in templates.
Reports custom modifiers used with v-model on Vue components.
Reports deprecated object declarations on the data property.
Reports use of deprecated destroyed and beforeDestroy lifecycle hooks.
Reports use of deprecated $listeners.
Reports use of deprecated $scopedSlots.
Reports use of the deprecated $on, $off, and $once API.
Reports filter syntax removed in Vue.js 3.0.
Reports deprecated functional templates.
Reports the deprecated is attribute on HTML elements.
Reports deprecated inline-template attributes.
Reports use of this within props default value factory functions.
Reports deprecated use of the .sync modifier on v-bind.
Reports use of the deprecated .native modifier on v-on.
Reports deprecated KeyboardEvent.keyCode modifiers on v-on.
Reports use of deprecated Vue.config.keyCodes.
Disallows duplicate conditions in v-if and v-else-if chains.
Warns to apply inheritAttrs: false when v-bind="$attrs" is used.
Disallows empty template, script, and style blocks.
Applies no-extra-parens to expressions in templates.
Reports lifecycle hooks after an await expression.
Disallows unnecessary template elements.
Disallows passing multiple objects into an array for class.
Disallows passing multiple arguments to scoped slots.
Reports mutation of component props.
Disallows potential typos in component options.
Reports cases where a ref is used incorrectly as an operand.
Adds options to report Vue built-in component names.
Disallows specified component options.
Disallows specified attributes.
Disallows specified arguments in v-bind.
Reports destructuring setup props when it causes the value to lose reactivity.
Applies no-sparse-arrays to expressions in templates.
Disallows using components that are not registered inside templates.
Reports unused properties.
Adds ignorePattern to suppress reports for variable names matching a regular expression.
Applies no-useless-concat to expressions in templates.
Reports mustache interpolation with a string literal value.
Reports v-bind directives with string literal values.
Reports a key for template v-for placed on child elements.
Disallows arguments to v-model.
Reports watch() calls after an await expression.
Applies object-curly-newline to expressions in templates.
Applies object-property-newline to expressions in templates.
Checks that each file contains only one component.
Applies operator-linebreak to expressions in templates.
Applies prefer-template to expressions in templates.
Reports event triggers not declared with the emits option.
Enforces using $slots properties as functions.
Reports elements inside transition that do not control the display.
Enforces a return statement in emits validators.
Applies space-in-parens to expressions in templates.
Applies template-curly-spacing to expressions in templates.
Enforces which delimiter, in or of, should be used in v-for directives.
Adds the ignoreIncludesComment option.
Reports incorrect usage of v-is directives.
Behavior and default changes 10
Rules can now analyze arrow function component options.
Rules now support Optional Chaining.
Supports ES2020 syntax and calculates end-tag closing bracket indentation from the start tag.
Tracks the this variable.
Allows v-for keys.
Adds v-model-argument, v-model-custom-modifiers, and v-is to the syntax it checks.
Allows Vue 3 functional components.
Does not report when a key is placed on template.
No longer checks for a single root element.
Plugin rules now detect Vue.js 3.x components.
Tooling 3
Adds support for ECMAScript 2020.
Adds support for ESLint 7.x.
Adds support for Vue.js 3.0.
Fixes and other changes 13
Casing conversion now behaves like Vue core logic.
Handles v-is as a DEFINITION category.
Fixes reporting the latest-parser message in non-Vue files.
Fixes false negatives involving v-for and v-slot together or destructuring.
Fixes false positives for getters and setters.
Fixes false positives for spread elements.
Fixes a crash when an is attribute has no value.
Fixes false negatives for TemplateLiteral.
Tracks return statements in default factory functions, checks BigInt, and improves error locations.
Fixes crashes on sparse arrays.
Supports ES2020 syntaxes.
Fixes false positives for member calls and autofix errors, and corrects wrong autofixes.
Allows v-model arguments and custom modifiers.
eslint-plugin-vue 614 changes
Breaking changes 3
Support for ESLint 5.x was dropped.
Support for Node.js 6.x was dropped.
The rule no longer autofixes casing violations.
New APIs and options 6
Adds a rule applying
dot-locationto expressions in<template>.Adds a rule applying
keyword-spacingto expressions in<template>.Adds a rule that reports deprecated
scopeattributes in Vue.js v2.5.0+.Adds a rule applying
no-empty-patternto expressions in<template>.Adds a rule enforcing whether to use shorthand or long-form
v-slotdirectives.Adds a rule that checks whether every
v-slotdirective is valid.
Behavior and default changes 1
Nuxt properties were added to the rule's default order.
Tooling 2
The plugin added support for ESLint 6.x.
The plugin supports new syntax in Vue.js 2.6.
Fixes and other changes 2
The rule now allows events with different key codes.
A typo in the rule's message was fixed.