Update dependency eslint-plugin-vue to v10
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
eslint-plugin-vue (source) | devDependencies | major | ^9.0.0 -> ^10.0.0 |
Release Notes
vuejs/eslint-plugin-vue (eslint-plugin-vue)
v10.1.0

Enhancements

-
#2734 Improved
allowlist
option ofvue/no-bare-strings-in-template
rule to accept regex. -
#2736 Added
vue/define-props-destructuring
rule that enforce consistent style for props destructuring. -
#2685 Added
disallowComments
option tovue/no-multiple-template-root
rule.
Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v10.0.1...v10.1.0
v10.0.1

Bug Fixes

-
#2700 Fixed incorrect type for
.eslintrc
configs. -
#2703 Fixed false negatives for multiple script blocks in
vue/prefer-use-template-ref
rule. -
#2726 Fixed false positives for tagged template expressions in
vue/no-ref-as-operand
rule. -
#2728 Fixed false negatives for props destructure in
vue/require-default-prop
rule. -
#2731 Fixed false positives for renamed props in
vue/no-dupe-keys
rule.

Updates

-
#2701 Improved the report location for
vue/no-export-in-script-setup
rule. -
#2724 Improved the report location for
vue/html-self-closing
rule.
Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v10.0.0...v10.0.1
v10.0.0

Breaking changes

-
#2630 Changed Versioning Policy:
- Allow minor versions of this plugin to enhance the checks for new features in Vue and Nuxt.
- Allow updating deprecated/reserved HTML+SVG element tag names in minor versions, see #2171.
- #2645 Removed deprecated rules (see removed rules).
-
#2669 Dropped support for old versions of ESLint and Node.js. New minimum requirements:
- Node.js:
^18.18.0 || ^20.9.0 || >=21.1.0
- ESLint:
^8.57.0 || ^9.0.0
- Node.js:
- Updated configs:
-
#2627 Added
vue/block-order
rule to recommended configs (replaces the removedvue/component-tags-order
rule). -
#2628 Added
vue/no-deprecated-delete-set
rule to vue3-essential config. -
#2629 Added
vue/no-deprecated-model-definition
rule to vue3-essential config. -
#2640 Added
vue/no-required-prop-with-default
rule to recommended configs. -
#2653 Added
vue/valid-define-options
rule to vue3-essential config. - #2674 Removed globals from configs. You may need to configure them manually now, see https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables.
-
#2648 Renamed
.eslintrc
configs (to matcheslint.config.js
config names; see MR for comparison). -
#2668 Changed
.eslintrc
base config so that vue-eslint-parser is only used for.vue
files.
-
#2627 Added
- #2670 Changed vue-eslint-parser to peer dependency.
-
#2697 Upgraded vue-eslint-parser to v10.
- This includes https://github.com/vuejs/vue-eslint-parser/pull/195, which should make the parser much faster for large TypeScript projects
- This includes https://github.com/vuejs/vue-eslint-parser/pull/195, which should make the parser much faster for large TypeScript projects
-
#2153 Added
slots
andexpose
to the default order ofvue/order-in-components
rule. -
#2626 Removed legacy option from
vue/custom-event-name-casing
rule. -
#2655 Removed unused
runOutsideVue
option fromvue/sort-keys
rule. -
#2652 Removed
setup-compiler-macros
environments.

Enhancements

- #2693 Improved type resolution for generic types and improved the rules for checking type-only macros.
-
#2684 Added
vue/no-import-compiler-macros
rule that disallows importing Vue compiler macros. -
#2694 Added
except
option tovue/prefer-true-attribute-shorthand
rule. -
#2311 Improved the plugin to check for objects declared with Nuxt3
defineNuxtComponent()
.

Updates

- #2171 Updated resources.
- #2675 Deprecated Vue 2 only rules. They will be removed in eslint-plugin-vue v11.
Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.33.0...v10.0.0
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Tine Wittler
Merge request reports
Activity
Please register or sign in to reply