Update dependency eslint-plugin-vue to v9 #55
Closed
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:
^7.0.0-0
->^9.0.0
Release Notes
vuejs/eslint-plugin-vue
v9.8.0
Compare Source
✨ Enhancements
vue/require-prop-comment
rule that requires props to have a comment.vue/require-name-property
rule.🐛 Bug Fixes
<Textarea>
components invue/no-textarea-mustache
rule.vue/define-macros-order
rule.vue/component-name-in-template-casing
rule.vue/attribute-hyphenation
rule to disable autofix attributes containing underscores (_
).Full Changelog: vuejs/eslint-plugin-vue@v9.7.0...v9.8.0
v9.7.0
Compare Source
✨ Enhancements
vue/multiline-ternary
rule that applies the coremultiline-ternary
rule to expressions in<template>
and<style>
.vue/v-on-handler-style
rule that enforces writing style for handlers inv-on
directives.globals
option tovue/component-name-in-template-casing
rule.vue/no-restricted-class
rule.⚙️ Updates
vue/v-on-function-call
rule. Use the newvue/v-on-handler-style
rule instead.Full Changelog: vuejs/eslint-plugin-vue@v9.6.0...v9.7.0
v9.6.0
Compare Source
✨ Enhancements
vue/no-required-prop-with-default
rule that enforces props with default values to be optional.consistent
option tovue/padding-line-between-tags
rule.🐛 Bug Fixes
vue/no-ref-as-operand
rule.Full Changelog: vuejs/eslint-plugin-vue@v9.5.1...v9.6.0
v9.5.1
Compare Source
🐛 Bug Fixes
<script setup>
with TypeScript invue/no-undef-components
rule.Full Changelog: vuejs/eslint-plugin-vue@v9.5.0...v9.5.1
v9.5.0
Compare Source
✨ Enhancements
vue/no-ref-object-destructure
rule that reports the destructuring of ref objects causing the value to lose reactivity.vue/no-undef-components
rule to report when type-only imports are used.vue/padding-line-between-tags
rule that requires or disallows newlines between sibling tags in template.vue/define-emits-declaration
rule that enforces the declaration style ofdefineEmits
.vue/define-props-declaration
rule that enforces the declaration style ofdefineProps
.⚙️ Updates
vue/order-in-components
rule to be auto-fixable even when usingPropType
.Full Changelog: vuejs/eslint-plugin-vue@v9.4.0...v9.5.0
Thanks @dev1437, @Amorites, @acupofspirt for your contributions!
v9.4.0
Compare Source
🐛 Bug Fixes
vue/no-mutating-props
ruleFull Changelog: vuejs/eslint-plugin-vue@v9.3.0...v9.4.0
v9.3.0
Compare Source
⚙️ Updates
<script setup>
tovue/component-name-in-template-casing
rule.🐛 Bug Fixes
vue/custom-event-name-casing
,vue/no-restricted-custom-event
, andvue/require-explicit-emits
rules.Full Changelog: vuejs/eslint-plugin-vue@v9.2.0...v9.3.0
v9.2.0
Compare Source
⚙️ Updates
vue/no-unsupported-features
rule.Full Changelog: vuejs/eslint-plugin-vue@v9.1.1...v9.2.0
v9.1.1
Compare Source
🐛 Bug Fixes
vue/no-unused-components
ruleFull Changelog: vuejs/eslint-plugin-vue@v9.1.0...v9.1.1
v9.1.0
Compare Source
🐛 Bug Fixes
vue/prefer-import-from-vue
rule to skip side-effect imports in.d.ts
files.Full Changelog: vuejs/eslint-plugin-vue@v9.0.1...v9.1.0
v9.0.1
Compare Source
🐛 Bug Fixes
vue/no-expose-after-await
ruleFull Changelog: vuejs/eslint-plugin-vue@v9.0.0...v9.0.1
v9.0.0
Compare Source
💥 Breaking Changes
vue/custom-event-name-casing
rule tocamelCase
.vue/html-closing-bracket-spacing
andvue/html-closing-bracket-newline
rules for top-level tags.Change Vue 3 presets configs
plugin:vue/vue3-essential
config:vue/no-child-content
rulevue/no-expose-after-await
rulevue/no-reserved-component-names
rulevue/no-use-computed-property-like-method
rulevue/no-v-text-v-html-on-component
rulevue/prefer-import-from-vue
rulevue/valid-attribute-name
ruleplugin:vue/vue3-strongly-recommended
config:plugin:vue/vue3-recommended
config:Change Vue 2 preset configs
plugin:vue/essential
config:vue/no-child-content
rulevue/no-reserved-component-names
rulevue/no-use-computed-property-like-method
rulevue/no-v-text-v-html-on-component
rulevue/valid-attribute-name
rulevue/valid-model-definition
rulevue/no-export-in-script-setup
rule *vue/no-ref-as-operand
rule *vue/no-setup-props-destructure
rule *vue/return-in-emits-validator
rule *vue/valid-define-emits
rule *vue/valid-define-props
rule *plugin:vue/strongly-recommended
config:plugin:vue/recommended
config:Note: The rules marked with * are now included in the
plugin:vue/essential
config because @vue/composition-api and unplugin-vue2-script-setup add (limited) support for these Vue 3 features in Vue 2. If you don't use those libraries, enabling these rules shouldn't affect you.Deprecated features
vue/no-invalid-model-keys
rule is now deprecated, as it's renamed tovue/valid-model-definition
vue/script-setup-uses-vars
rule is now deprecated, as it's no longer needed with the upgrade to vue-eslint-parser to v9vue/setup-compiler-macros
environment is now deprecated, as it's no longer needed with the upgrade to vue-eslint-parser to v9Removed features
Previously deprecated rules are removed completely:
vue/experimental-script-setup-vars
rule (deprecated in v7.13.0): not needed anymorevue/name-property-casing
rule (deprecated in v7.0.0): usevue/component-definition-name-casing
insteadvue/no-confusing-v-for-v-if
rule (deprecated in v5.0.0): usevue/no-use-v-if-with-v-for
insteadvue/no-unregistered-components
rule (deprecated in v8.4.0): usevue/no-undef-components
insteadPreviously deprecated internal util methods are removed completely:
getComponentProps
: usegetComponentPropsFromOptions
insteadgetComponentEmits
: usegetComponentEmitsFromOptions
instead✨ Enhancements
vue/match-component-file-name
rule fixable via editor suggestions.<script setup>
invue/no-expose-after-await
rule.vue/valid-attribute-name
rule.🐛 Bug Fixes
vue/define-macros-order
rule when there are multiple<script>
tags.vue/html-closing-bracket-spacing
andvue/html-closing-bracket-newline
rules for top-level tags.Full Changelog: vuejs/eslint-plugin-vue@v8.7.0...v9.0.0
v8.7.1
Compare Source
🐛 Bug Fixes
vue/define-macros-order
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.7.0...v8.7.1
v8.7.0
Compare Source
✨ Enhancements
vue/component-tags-order
rule.vue/match-component-import-name
rule that requires the registered component name to match the imported component name.vue/define-macros-order
rule that enforces the order ofdefineEmits
anddefineProps
compiler macros.🐛 Bug Fixes
<script setup>
invue/multi-word-component-names
rule.<script setup>
with TS literal type invue/require-valid-default-prop
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.6.0...v8.7.0
v8.6.0
Compare Source
✨ Enhancements
vue/component-tags-order
rule auto-fixable.vue/prefer-prop-type-boolean-first
rule that enforces thatBoolean
comes first in component prop typesvue/no-restricted-html-elements
rule that disallows specific HTML elements.🐛 Bug Fixes
<slot>
invue/attribute-hyphenation
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.5.0...v8.6.0
v8.5.0
Compare Source
✨ Enhancements
prefer-true-attribute-shorthand
rule that forces thev-bind
attribute withtrue
value to use the shorthand.vue/prefer-import-from-vue
rule that aims to use imports from'vue'
instead of imports from'@​vue/*'
.Full Changelog: vuejs/eslint-plugin-vue@v8.4.1...v8.5.0
v8.4.1
Compare Source
🐛 Bug Fixes
vue/no-undef-components
rule.vue/no-unused-properties
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.4.0...v8.4.1
v8.4.0
Compare Source
✨ Enhancements
vue/no-v-text-v-html-on-component
rule that disallows the use ofv-text
/v-html
on component.vue/object-shorthand
rule that appliesobject-shorthand
rule to expressions in<template>
.vue/no-undef-components
rule that warns reports component that are used in the<template>
, but that are not defined in the<script setup>
or the Options API'scomponents
section.vue/quote-props
rule that appliesquote-props
rule to expressions in<template>
.vue/no-unused-properties
rule.vue/no-undef-properties
rule.🐛 Bug Fixes
vue/script-indent
rule.v-bind="obj"
withv-model
invue/attributes-order
rule.v-bind()
invue/no-extra-parens
rule.vue/valid-next-tick
rule.⚙️ Updates
vue/no-unregistered-components
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.3.0...v8.4.0
v8.3.0
Compare Source
🐛 Bug Fixes
<textarea>
without end tag invue/html-indent
rule.vue/require-explicit-emits
rule.⚙️ Updates
$set
and$nextTick
in computed properties.Full Changelog: vuejs/eslint-plugin-vue@v8.2.0...v8.3.0
v8.2.0
Compare Source
✨ Enhancements
vue/component-options-name-casing
rule that enforces the casing of component name incomponents
options.vue/prefer-separate-static-class
rule that requires static class names in template to be in a separateclass
attribute.🐛 Bug Fixes
vue/valid-define-emits
andvue/valid-define-props
rules.⚙️ Updates
vue/script-indent
rule.asyncData
invue/no-dupe-keys
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.1.1...v8.2.0
v8.1.1
Compare Source
🐛 Bug Fixes
vue/component-api-style
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.1.0...v8.1.1
v8.1.0
Compare Source
✨ Enhancements
vue/no-child-content
rule that reports child content of elements that have a directive which overwrites that child content.vue/no-expose-after-await
rule that reports theexpose()
afterawait
expression.composition-vue2
style option invue/component-api-style
rule.🐛 Bug Fixes
vue/no-export-in-script-setup
rule.v-bind.sync
invue/no-mutating-props
rule.vue/no-mutating-props
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.0.3...v8.1.0
v8.0.3
Compare Source
🐛 Bug Fixes
It upgrade fixes the wrong location in multiple
<script>
Full Changelog: vuejs/eslint-plugin-vue@v8.0.2...v8.0.3
v8.0.2
Compare Source
🐛 Bug Fixes
vue/multi-word-component-names
ruleFull Changelog: vuejs/eslint-plugin-vue@v8.0.1...v8.0.2
v8.0.1
Compare Source
🐛 Bug Fixes
vue/valid-next-tick
rule.Full Changelog: vuejs/eslint-plugin-vue@v8.0.0...v8.0.1
v8.0.0
Compare Source
💥 Breaking Changes
plugin:vue/vue3-essential
config.vue/no-deprecated-v-is
rule.vue/no-export-in-script-setup
rule.vue/valid-define-emits
rule.vue/valid-define-props
rule.vue/valid-next-tick
rule.vue/valid-v-memo
rule.vue/no-useless-template-attributes
rule.vue/no-computed-properties-in-data
rule.vue/multi-word-component-names
rule.vue/no-deprecated-router-link-tag-prop
rule.vue/no-reserved-props
rule.plugin:vue/vue3-strongly-recommended
config.vue/v-on-event-hyphenation
rule.vue/first-attribute-linebreak
rule.plugin:vue/vue3-recommended
config.plugin:vue/essential
config.vue/valid-next-tick
rule.vue/no-useless-template-attributes
rule.vue/no-computed-properties-in-data
rule.vue/multi-word-component-names
rule.vue/no-reserved-props
rule.plugin:vue/strongly-recommended
config.vue/first-attribute-linebreak
rule.plugin:vue/recommended
config.allowFirstLine
option of thevue/max-attributes-per-line
rule.✨ Enhancements
Core:
setup-compiler-macros
environment.Rules:
vue/first-attribute-linebreak
rule aims to enforce a consistent location for the first attribute.vue/no-reserved-props
rule that disallow reserved names to be used in props.vue/no-loss-of-precision
rule that appliesno-loss-of-precision
rule to expressions in<template>
.ignore
option tovue/multi-word-component-names
rule.asyncData
invue/no-dupe-keys
,vue/no-reserved-keys
,vue/no-template-shadow
,vue/no-undef-properties
, andvue/no-unused-properties
rules.🐛 Bug Fixes
vue/multi-word-component-names
rule.Full Changelog: vuejs/eslint-plugin-vue@v7.20.0...v8.0.0
v7.20.0
Compare Source
✨ Enhancements
vue/no-undef-properties
rule that warns of using undefined properties.vue/no-computed-properties-in-data
rule that disallow accessing computed properties indata()
.vue/no-use-computed-property-like-method
rule reports.vue/multi-word-component-names
rule to enforce multiple words in component names.vue/no-deprecated-router-link-tag-prop
rule that disallow using deprecatedtag
property on<RouterLink>
.🐛 Bug Fixes
vue/no-use-computed-property-like-method
rule.vue/valid-define-emits
andvue/valid-define-props
rules.⚙️ Updates
^6.2.0 || ^7.0.0 || ^8.0.0-0
to^6.2.0 || ^7.0.0 || ^8.0.0
.Full Changelog: vuejs/eslint-plugin-vue@v7.19.1...v7.20.0
v7.19.1
Compare Source
🐛 Bug Fixes
83eab8d
] Fixed false positives for vars inside functions invue/valid-define-emits
andvue/valid-define-props
rules. Picked from #1652Full Changelog: vuejs/eslint-plugin-vue@v7.19.0...v7.19.1
v7.19.0
Compare Source
✨ Enhancements
vue/no-restricted-class
rule that reports the classes you don't want to allow in the template.vue/no-useless-template-attributes
rule that disallow useless attribute on<template>
tags.🐛 Bug Fixes
vue/no-unused-properties
rule.update:
.All commits: v7.18.0 -> v7.19.0
v7.18.0
Compare Source
✨ Enhancements
vue/component-api-style
rule that aims to make the API style you use to define Vue components consistent in your project.⚙️ Updates
vue/script-indent
rule to support Class static block and typescript-eslint v5(rc)defineProps
to follow vue v3.2.9.All commits: v7.17.0 -> v7.18.0
v7.17.0
Compare Source
✨ Enhancements
vue/no-v-text
rule that disallowv-text
directive.⚙️ 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.0
Compare Source
✨ Enhancements
vue/valid-v-memo
rule that enforce validv-memo
directives.vue/no-unsupported-features
rule to support Vue 3.2 syntaxes.🐛 Bug Fixes
vue/script-setup-uses-vars
rule.⚙️ Updates
vue/no-restricted-v-bind
andvue/valid-v-bind
rules to supportattr
modifier.All commits: v7.15.2 -> v7.16.0
v7.15.2
Compare Source
🐛 Bug Fixes
vue/no-use-computed-property-like-method
rule.All commits: v7.15.1 -> v7.15.2
v7.15.1
Compare Source
🐛 Bug Fixes
vue/no-reserved-keys
rule.vue/require-default-prop
rule.All commits: v7.15.0 -> v7.15.1
v7.15.0
Compare Source
✨ Enhancements
vue/no-use-computed-property-like-method
rule that disallows to use computed property like method.vue/block-lang
rule rule that disallows the use of languages other than those available in the your application for thelang
attribute of block elements.vue/comma-spacing
rule.vue/dot-notation
rule.vue/eqeqeq
rule.vue/func-call-spacing
rule.vue/no-extra-parens
rule.vue/no-restricted-syntax
rule.vue/no-useless-concat
rule.vue/prefer-template
rule.vue/space-in-parens
rule.vue/space-infix-ops
rule.vue/space-unary-ops
rule.vue/template-curly-spacing
rule.🐛 Bug Fixes
vue/no-mutating-props
rule.⚙️ Updates
All commits: v7.14.0 -> v7.15.0
v7.14.0
Compare Source
✨ Enhancements
vue/require-expose
rule that enforces the component to explicitly declare the exposed properties to the component usingexpose
.vue/no-unused-properties
rule to supportexpose
vue/no-parsing-error
rule.vue/no-unused-properties
rule.vue/script-setup-uses-vars
rule.vue/no-unsupported-features
rule.vue/valid-v-xxx
rules.🐛 Bug Fixes
<script setup>
invue/no-lifecycle-after-await
rule.<script setup>
invue/no-watch-after-await
rule.<script setup>
invue/no-restricted-call-after-await
rule.semver
compatible with Node v8.All commits: v7.13.0 -> v7.14.0
v7.13.0
Compare Source
✨ Enhancements
<script setup>
vue/script-setup-uses-vars
rule that will find variables in<script setup>
used in<template>
and mark them as used.vue/no-export-in-script-setup
rule that disallows ES export in<script setup>
.vue/valid-define-props
rule that reportsdefineProps
compiler macros in the following cases:defineProps
are referencing locally declared variables.defineProps
has both a literal type and an argument. e.g.defineProps<{/*props*/}>({/*props*/})
defineProps
has been called multiple times.defineProps
andexport default {}
.defineProps
orexport default {}
.vue/valid-define-emits
rule that reportsdefineEmits
compiler macros in the following cases:defineEmits
are referencing locally declared variables.defineEmits
has both a literal type and an argument. e.g.defineEmits<(e: 'foo')=>void>(['bar'])
defineEmits
has been called multiple times.defineEmits
andexport default {}
.defineEmits
orexport default {}
.vue-eslint-parser
.<script setup>
.vue/no-mutating-props
rule.vue/no-reserved-keys
rule.vue/no-async-in-computed-properties
rule.vue/no-side-effects-in-computed-properties
rule.vue/require-prop-type-constructor
rule.vue/no-lifecycle-after-await
rule.vue/require-valid-default-prop
rule.vue/return-in-emits-validator
rule.vue/require-default-prop
rule.vue/no-setup-props-destructure
rule.vue/no-watch-after-await
rule.vue/no-template-shadow
rule.vue/prop-name-casing
rule.vue/require-prop-types
rule.vue/require-explicit-emits
rule.vue/custom-event-name-casing
rule.vue/no-boolean-default
rule.vue/no-restricted-call-after-await
rule.vue/no-restricted-props
rule.vue/no-unregistered-components
rule.vue/no-unsupported-features
rule.vue/no-unused-properties
rule.vue/no-unused-refs
rule.vue/require-emit-validator
rule.vue/require-name-property
rule.vue/no-template-shadow
rule to supportsetup()
.vue/no-unused-refs
rule to supportsetup()
.🐛 Bug Fixes
⚙️ Updates
vue/experimental-script-setup-vars
rule.All commits: v7.12.1 -> v7.13.0
v7.12.1
Compare Source
🐛 Bug Fixes
vue/script-indent
rule.All commits: v7.12.0 -> v7.12.1
v7.12.0
Compare Source
✨ Enhancements
vue/script-indent
rule to support TypeScript syntax.vue/script-indent
rule andvue/html-indent
rule to support ES2022 Class Fields syntax. (When using espree v8+.)🐛 Bug Fixes
vue/no-deprecated-slot-attribute
rule andvue/no-deprecated-slot-scope-attribute
rule.vue/no-deprecated-props-default-this
rule.⚙️ Updates
All commits: v7.11.1 -> v7.12.0
v7.11.1
Compare Source
🐛 Bug Fixes
objectsInObjects
option invue/object-curly-spacing
rule.v7.11.0
Compare Source
✨ Enhancements
New Rules:
vue/no-this-in-before-route-enter
rule that disallowthis
usage in abeforeRouteEnter
method.vue/no-deprecated-v-is
rule that disallow deprecatedv-is
directive (in Vue.js 3.1.0+).Other changes in Rules:
vue/no-deprecated-destroyed-lifecycle
rule to auto-fixable.⚙️ Updates
is="vue:"
(Vue 3.1.0+).All commits: v7.10.0 -> v7.11.0
v7.10.0
Compare Source
✨ Enhancements
New Rules:
vue/require-emit-validator
rule that enforce the validator definition in emits.Other changes in Rules:
vue/this-in-template
rule to support autofix.⚙️ Updates
vue/attribute-hyphenation
rule to ignore SVG attributes.All commits: [v7.9.0 -> v7.1
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/London, 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.