✨ Enhancements
New Rules:
- #481 added
vue/v-on-function-call
rule that enforces or forbids parentheses after method calls without arguments inv-on
directives. - #581 added
vue/require-direct-export
rule that enforces the component to be directly exported. - #612 added
vue/no-boolean-default
rule that disallows the default value of boolean properties. - #668 added
vue/match-component-file-name
rule that verifies component name property to match its file name. - #680 added
vue/array-bracket-spacing
rule that enforces consistent spacing inside array brackets in<template>
. - #680 added
vue/eqeqeq
rule that applieseqeqeq
rule to expressions in<template>
. - #680 added
vue/key-spacing
rule that applieskey-spacing
rule to expressions in<template>
. - #680 added
vue/object-curly-spacing
rule that appliesobject-curly-spacing
rule to expressions in<template>
. - #680 added
vue/space-infix-ops
rule that appliesspace-infix-ops
rule to expressions in<template>
. - #680 added
vue/space-unary-ops
rule that appliesspace-unary-ops
rule to expressions in<template>
. - #758 added
vue/no-restricted-syntax
rule that appliesno-restricted-syntax
rule to expressions in<template>
. - #767 added
vue/arrow-spacing
rule that appliesarrow-spacing
rule to expressions in<template>
. - #770 added
vue/block-spacing
rule that appliesblock-spacing
rule to expressions in<template>
. - #771 added
vue/brace-style
rule that appliesbrace-style
rule to expressions in<template>
. - #772 added
vue/camelcase
rule that appliescamelcase
rule to expressions in<template>
. - #773 added
vue/comma-dangle
rule that appliescomma-dangle
rule to expressions in<template>
.
New Options:
- #714 added
registeredComponentsOnly
option tovue/component-name-in-template-casing
rule to ignore unknown elements.
Other changes in Rules:
- #786 modified
vue/order-in-components
rule to recognize Nuxt-specific members.
🐛 Bug Fixes
- #738 fixed
vue/multiline-html-element-content-newline
rule andvue/singleline-html-element-content-newline
rule to ignore inline elements by default. - #745 fixed
vue/no-async-in-computed-properties
rule to allow await expression in nested scopes. - #750 fixed
vue/use-v-on-exact
rule about false positives. - #754 fixed multiple bugs via updating
vue-eslint-parser
.- it fixed the parser to parse anonymous functions in
v-on
directive correctly. - it fixed the parser to parse multiple parameters in
slot-scope
attribute correctly. - it fixed the parser to not parse expressions in the elements which have
v-pre
directive.
- it fixed the parser to parse anonymous functions in
- #790 fixed
vue/no-unused-components
rule to process computed properties properly. - #791 fixed
vue/require-default-prop
rule andvue/require-valid-default-prop
rule to process computed properties properly. - #793 fixed
vue/no-unused-components
rule to process empty:is
directives properly.
All commits: v5.1.0...v5.2.0