v5.2.0
✨ Enhancements
New Rules:
- #481 added
vue/v-on-function-callrule that enforces or forbids parentheses after method calls without arguments inv-ondirectives. - #581 added
vue/require-direct-exportrule that enforces the component to be directly exported. - #612 added
vue/no-boolean-defaultrule that disallows the default value of boolean properties. - #668 added
vue/match-component-file-namerule that verifies component name property to match its file name. - #680 added
vue/array-bracket-spacingrule that enforces consistent spacing inside array brackets in<template>. - #680 added
vue/eqeqeqrule that applieseqeqeqrule to expressions in<template>. - #680 added
vue/key-spacingrule that applieskey-spacingrule to expressions in<template>. - #680 added
vue/object-curly-spacingrule that appliesobject-curly-spacingrule to expressions in<template>. - #680 added
vue/space-infix-opsrule that appliesspace-infix-opsrule to expressions in<template>. - #680 added
vue/space-unary-opsrule that appliesspace-unary-opsrule to expressions in<template>. - #758 added
vue/no-restricted-syntaxrule that appliesno-restricted-syntaxrule to expressions in<template>. - #767 added
vue/arrow-spacingrule that appliesarrow-spacingrule to expressions in<template>. - #770 added
vue/block-spacingrule that appliesblock-spacingrule to expressions in<template>. - #771 added
vue/brace-stylerule that appliesbrace-stylerule to expressions in<template>. - #772 added
vue/camelcaserule that appliescamelcaserule to expressions in<template>. - #773 added
vue/comma-danglerule that appliescomma-danglerule to expressions in<template>.
New Options:
- #714 added
registeredComponentsOnlyoption tovue/component-name-in-template-casingrule to ignore unknown elements.
Other changes in Rules:
- #786 modified
vue/order-in-componentsrule to recognize Nuxt-specific members.
🐛 Bug Fixes
- #738 fixed
vue/multiline-html-element-content-newlinerule andvue/singleline-html-element-content-newlinerule to ignore inline elements by default. - #745 fixed
vue/no-async-in-computed-propertiesrule to allow await expression in nested scopes. - #750 fixed
vue/use-v-on-exactrule about false positives. - #754 fixed multiple bugs via updating
vue-eslint-parser.- it fixed the parser to parse anonymous functions in
v-ondirective correctly. - it fixed the parser to parse multiple parameters in
slot-scopeattribute correctly. - it fixed the parser to not parse expressions in the elements which have
v-predirective.
- it fixed the parser to parse anonymous functions in
- #790 fixed
vue/no-unused-componentsrule to process computed properties properly. - #791 fixed
vue/require-default-proprule andvue/require-valid-default-proprule to process computed properties properly. - #793 fixed
vue/no-unused-componentsrule to process empty:isdirectives properly.
All commits: v5.1.0...v5.2.0