New rules
- Added new
vue/no-deprecated-html-elementsrule (#3215)
New rule options
- Added
ignoreConflictingNamesoption tovue/match-component-import-name(#3218) - Added
ignoreCommentsoption tovue/multiline-html-element-content-newlineandvue/singleline-html-element-content-newline(#3228) - Added
betweenConditionalTagsoption tovue/padding-line-between-tags(#3256) - Added
checkScriptSetupoption tovue/require-name-propertyto also require anamein<script setup>components (#3149) - Added
["inline", "inline-function"]option tovue/v-on-handler-style(#3234)
Other rule changes/fixes (may result in more lint warnings)
- Fixed
vue/comment-directiveso that<!-- eslint-enable -->re-enables rules disabled by<!-- eslint-disable rule -->, and<!-- eslint-enable rule -->re-enables that rule after<!-- eslint-disable -->, as ESLint does (#3231) - Extended
vue/define-props-declarationto enforce the declaration style ofdefineModel(#3281) - Changed
vue/no-boolean-defaultandvue/require-default-propto match Vue's Boolean Casting behavior (treat multi-type props that includeBooleanas boolean props) (#3214) - Fixed
vue/no-template-shadowfalse negatives for template variables that shadowinjectproperties (#3267) - Fixed
vue/no-ref-as-operandfalse negatives for refs on the right side of a logical expression whose result is used as an operand, e.g.if (a && ref)(#3148) - Fixed
vue/no-unused-componentsto match registered names the same way Vue resolves components, so e.g. amyComponentregistration used only as<MyComponent>(which Vue cannot resolve) is now reported (#3248) - Added support for static template literals in
vue/component-options-name-casing,vue/multi-word-component-names,vue/no-bare-strings-in-template,vue/no-dupe-keys,vue/no-duplicate-class-names,vue/no-restricted-component-names,vue/no-undef-components, andvue/no-unused-components. (#3226)
Other changes
- Improved grammar and wording in some rule messages (#3258)
- Updated the
vue-eslint-parserpeer dependency from^10.3.0to^10.4.2, see vue-eslint-parser release notes (#3249) - Added support for ESLint Stylistic v6, see its release notes. Since ESLint Stylistic v6 changed the default option of
dot-locationto"property",vue/dot-locationalso defaults to"property"when ESLint Stylistic v6 is installed. (#3264)