Skip to content

v5.2.0

Compare
Choose a tag to compare
@mysticatea mysticatea released this 14 Feb 08:54
· 810 commits to master since this release
v5.2.0
04b3c38

✨ Enhancements

New Rules:

  • #481 added vue/v-on-function-call rule that enforces or forbids parentheses after method calls without arguments in v-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 applies eqeqeq rule to expressions in <template>.
  • #680 added vue/key-spacing rule that applies key-spacing rule to expressions in <template>.
  • #680 added vue/object-curly-spacing rule that applies object-curly-spacing rule to expressions in <template>.
  • #680 added vue/space-infix-ops rule that applies space-infix-ops rule to expressions in <template>.
  • #680 added vue/space-unary-ops rule that applies space-unary-ops rule to expressions in <template>.
  • #758 added vue/no-restricted-syntax rule that applies no-restricted-syntax rule to expressions in <template>.
  • #767 added vue/arrow-spacing rule that applies arrow-spacing rule to expressions in <template>.
  • #770 added vue/block-spacing rule that applies block-spacing rule to expressions in <template>.
  • #771 added vue/brace-style rule that applies brace-style rule to expressions in <template>.
  • #772 added vue/camelcase rule that applies camelcase rule to expressions in <template>.
  • #773 added vue/comma-dangle rule that applies comma-dangle rule to expressions in <template>.

New Options:

  • #714 added registeredComponentsOnly option to vue/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 and vue/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.
  • #790 fixed vue/no-unused-components rule to process computed properties properly.
  • #791 fixed vue/require-default-prop rule and vue/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