build(eslint-config-wopian-vue): update dependency eslint-plugin-vue to ^7.0.0 #138
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.0.0
Release Notes
vuejs/eslint-plugin-vue
v7.0.0
Compare Source
🚀 Highlight
💥 Breaking Changes
plugin:vue/base
config.jsx:true
from shareable configs.parserOptions.ecmaVersion
to 2020.vue/experimental-script-setup-vars
rule.plugin:vue/essential
config.vue/valid-v-bind-sync
rule.vue/valid-v-slot
rule.vue/no-custom-modifiers-on-v-model
rule.vue/no-multiple-template-root
rule.vue/no-v-model-argument
rule.vue/no-mutating-props
rule.vue/no-arrow-functions-in-watch
rule.vue/custom-event-name-casing
rule.vue/no-dupe-v-else-if
rule.vue/no-v-for-template-key
rule.plugin:vue/strongly-recommended
config.vue/component-definition-name-casing
rule.vue/v-slot-style
rule.vue/name-property-casing
rule.vue/one-component-per-file
rule.plugin:vue/recommended
config.vue/component-tags-order
rule.vue/no-multiple-slot-args
rule.vue/no-lone-template
rule.vue/name-property-casing
rule to be deprecate.vue/order-in-components
rule.emits
to afterprops
.setup
to afteremits
.beforeUnmount
andunmounted
to LIFECYCLE_HOOKS.renderTracked
andrenderTriggered
to LIFECYCLE_HOOKS.provide
andinject
to aftermixins
.errorCaptured
to LIFECYCLE_HOOKS.beforeRouteEnter
,beforeRouteUpdate
andbeforeRouteLeave
) to afterprovide / inject
(provide / inject
was added aftermixins
).key
to aftername
.layout
,middleware
,validate
,scrollToTop
,transition
,loading
to after ROUTER_GUARDS (ROUTER_GUARDS was added afterprovide / inject
).watchQuery
to afterwatch
.head
move from aftermethods
to afterdata
.fetch
move from afterprops / propsData
to afterdata
.✨ Enhancements
Core:
plugin:vue/essential
config.plugin:vue/strongly-recommended
config.plugin:vue/recommended
config.New Rulesets:
plugin:vue/vue3-essential
config.plugin:vue/vue3-strongly-recommended
config.plugin:vue/vue3-recommended
config.New Rules:
for Vue.js 3.x:
vue/no-deprecated-v-bind-sync
rule that reports when deprecated.sync
modifier is used onv-bind
directive. Related to RFC0005vue/no-deprecated-filter
rule that reports usage of filters syntax removed in Vue.js 3.0.0+. Related to RFC0015vue/no-ref-as-operand
rule that reports cases where a ref is used incorrectly as an operand. Related to RFC0013vue/no-setup-props-destructure
rule that reports the destructuring of props passed to setup causing the value to lose reactivity. Related to RFC0013vue/no-lifecycle-after-await
rule that reports the lifecycle hooks after await expression. Related to RFC0013vue/no-deprecated-v-on-number-modifiers
rule that reports use of deprecatedKeyboardEvent.keyCode
modifier onv-on
directive. Related to RFC0014vue/no-deprecated-data-object-declaration
rule that reports use of deprecated object declaration ondata
property. Related to RFC0019vue/no-deprecated-events-api
rule that reports use of deprecated$on
,$off
and$once
api (removed in Vue.js v3.0.0+). Related to RFC0020vue/no-watch-after-await
rule that reports thewatch()
afterawait
expression. RFC0013vue/require-toggle-inside-transition
rule that reports elements inside<transition>
that do not control the display. Related to RFC0017vue/no-deprecated-inline-template
rule that reports deprecatedinline-template
attributes (removed in Vue.js v3.0.0+) Related to RFC0016vue/no-deprecated-html-element-is
rule that reports deprecated the is attribute on HTML elements (removed in Vue.js v3.0.0+). Related to RFC0027vue/no-deprecated-vue-config-keycodes
rule that reports use of deprecated Vue.config.keyCodes (removed in Vue.js 3.0.0+). Related to RFC0014vue/no-deprecated-functional-template
rule that reports deprecated the functional template (removed in Vue.js 3.0.0+). Related to RFC0007vue/require-explicit-emits
rule that reports event triggers not declared with the emits option. Related to RFC0030vue/return-in-emits-validator
rule enforces that a return statement is present in emits validators. Related to RFC0030vue/no-deprecated-v-on-native-modifier
rule that reports use of deprecated.native
modifier onv-on
directive. Related to RFC0031vue/no-deprecated-dollar-listeners-api
rule that reports use of deprecated$listeners
. Related to RFC0031vue/no-deprecated-dollar-scopedslots-api
rule that reports use of deprecated$scopedSlots
. Related to RFC0006vue/require-slots-as-functions
rule enforces the properties of $slots to be used as a function. Related to RFC0006vue/no-deprecated-destroyed-lifecycle
rule reports use of deprecateddestroyed
andbeforeDestroy
lifecycle hooks.vue/valid-v-is
rule that reports wrong usage ofv-is
directives.vue/no-v-for-template-key-on-child
rule that reports the key of the<template v-for>
placed on the child elements.vue/no-deprecated-props-default-this
rule that reports the use ofthis
within the props default value factory functions.vue/experimental-script-setup-vars
rule that prevent variables defined in<script setup>
to be marked as undefined.for Vue.js 2.x:
vue/no-multiple-template-root
rule to template to check for a single root element. This rule has been separated from the previousvue/valid-template-root
rule.vue/no-v-model-argument
rule that does not allow argument to v-model.vue/no-custom-modifiers-on-v-model
rule that reports whenv-model
is used with custom modifiers on Vue Component.vue/no-v-for-template-key
rule that disallow the key placed on the<template v-for>
. This rule has been separated from the previousvue/no-template-key
rule.Commons:
vue/no-template-no-target-blank
rule that disallows usingtarget="_blank"
attribute withoutrel="noopener noreferrer"
to avoid a security vulnerability.vue/no-unregistered-components
rule that disallow using components that are not registered inside templates.vue/html-comment-indent
rule that enforce consistent indentation in HTML comments.vue/html-comment-content-newline
rule that enforce unified line brake in HTML comments.vue/html-comment-content-spacing
rule that enforce unified spacing in HTML comments.vue/no-duplicate-attr-inheritance
rule that warn to applyinheritAttrs: false
when it detectsv-bind="$attrs"
being used.vue/no-unused-properties
rule that report unused properties.vue/no-mutating-props
rule that reports mutation of component props.vue/one-component-per-file
rule that checks if there is only one component per file.vue/no-potential-property-typo
rule that disallow a potential typo in your component options.vue/no-arrow-functions-in-watch
rule that disallow use an arrow function to define a watcher.vue/custom-event-name-casing
rule that enforces using kebab-case custom event names.vue/no-multiple-slot-args
rule disallows to pass multiple arguments to scoped slots.vue/no-bare-strings-in-template
rule that disallows the use of bare strings in<template>
.vue/no-useless-v-bind
rule that reportsv-bind
with a string literal value.vue/no-useless-mustaches
rule that reports mustache interpolation with a string literal value.vue/no-restricted-v-bind
rule that disallow specific argument inv-bind
.vue/no-restricted-static-attribute
rule that disallow specific attribute.vue/no-restricted-component-options
rule that disallow specific component options.vue/no-multiple-objects-in-class
rule disallows to pass multiple objects into array to class.vue/no-empty-component-block
rule disallows the<template>
<script>
<style>
block to be empty.vue/no-lone-template
rule that disallow unnecessary<template>
element.vue/no-dupe-v-else-if
rule that disallow duplicate conditions inv-if
/v-else-if
chains.vue/v-for-delimiter-style
rule that enforces which delimiter (in
orof
) should be used inv-for
directives.Core Extends:
vue/comma-spacing
rule that appliescomma-spacing
rule to expressions in<template>
.vue/prefer-template
rule that appliesprefer-template
rule to expressions in<template>
.vue/template-curly-spacing
rule that appliestemplate-curly-spacing
rule to expressions in<template>
.vue/space-in-parens
rule that appliesspace-in-parens
rule to expressions in<template>
.vue/comma-style
rule that appliescomma-style
rule to expressions in<template>
.vue/no-extra-parens
rule that appliesno-extra-parens
rule to expressions in<template>
.vue/no-useless-concat
rule that appliesno-useless-concat
rule to expressions in<template>
.vue/dot-notation
rule that appliesdot-notation
rule to expressions in<template>
.vue/object-property-newline
rule that appliesobject-property-newline
rule to expressions in<template>
.vue/object-curly-newline
rule that appliesobject-curly-newline
rule to expressions in<template>
.vue/operator-linebreak
rule that appliesoperator-linebreak
rule to expressions in<template>
.vue/func-call-spacing
rule that appliesfunc-call-spacing
rule to expressions in<template>
.vue/no-sparse-arrays
rule that appliesno-sparse-arrays
rule to expressions in<template>
.New Options:
ignorePattern
option tovue/no-unsed-vars
rule to disables reporting of variable names that match the regular expression.disallowVueBuiltInComponents
anddisallowVue3BuiltInComponents
option that reports Vue built-in component names to thevue/no-reserved-component-names
rule.reportUnusedDisableDirectives
option tovue/comment-directive
.closeBracket.startTag
,closeBracket.endTag
andcloseBracket.selfClosingTag
options tovue/html-indent
rule.So that the closeBracket offset value can be set for each tag type.
ignoreIncludesComment
option tovue/v-on-function-call
rule."v-model-argument"
and"v-model-custom-modifiers"
to the syntax checked by thevue/no-unsupported-features
rule."v-is"
to the syntax checked by thevue/no-unsupported-features
rule.Other Changes in Rules:
for Vue.js 3.x:
vue/valid-template-root
rule.vue/valid-v-model
rule to allowv-model
argument. Related to RFC0011vue/valid-v-model
rule to allowv-model
custom modifiers. Related to RFC0011vue/no-dupe-key
,vue/no-reserved-keys
rules to handlesetup
.vue/require-direct-export
rule to allow Vue 3 functional component.vue/order-in-components
rule.vue/attributes-order
rule to handlev-is
asDEFINITION
category.vue/no-unregistered-components
rule to handlev-is
like:is
.vue/no-unused-components
rule to handlev-is
like:is
.slot-scope
when"^3.0.0"
is set invue/no-unsupported-features
rule.vue/no-template-key
rule to allowv-for
key.vue/valid-v-for
rule to not report when placing key on<template>
.vue/require-v-for-key
rule to not report when placing key on<template>
.Commons:
vue/name-property-casing
rule to be deprecate.vue/no-side-effects-in-computed-properties
rule to track thethis
variable.vue/require-valid-default-prop
rule to track thereturn
statement in thefunction
defined indefault
.vue/require-valid-default-prop
rule to checkBigInt
.vue/require-valid-default-prop
rule.vue/html-indent
rule to calculate the base point of the indent offset of the closing bracket of the end tag by the start tag.vue/order-in-components
rule to understand "Nullish Coalescing".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-slot
andvue/valid-v-text
rules.vue/component-tags-order
rule to allow name array to be specified with one order option.vue/component-tags-order
rule.vue/order-in-components
rule.vue/html-indent
andvue/script-indent
rules.🐛 Bug Fixes
vue/v-on-function-call
rule.v-for
andv-slot
mixed or use destructuring forvue/no-unused-var
rule.vue/no-dupe-keys
rule.vue/v-on-function-call
rule.vue/prop-name-casing
rule.is
attribute with no value invue/no-unused-components
rule.vue/require-valid-default-prop
andvue/require-default-prop
rules crash on sparse arrays.vue/no-side-effects-in-computed
rule.All commits: v6.2.2 -> v7.0.0
Renovate configuration
📅 Schedule: "before 9am,after 5pm" in timezone Europe/London.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is behind base branch, 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 WhiteSource Renovate. View repository job log here.