Skip to content

v5.0.0

Compare
Choose a tag to compare
@mysticatea mysticatea released this 14 Feb 05:58
· 986 commits to master since this release

💥 Breaking Changes

  • #421 changed the order options of vue/attribute-order rule. "BINDING" was removed and "TWO_WAY_BINDING" and "OTHER_DIRECTIVES" were added.
  • #532 dropped support for Node.js 4.x, ESLint 3.x and 4.x.
  • #533, #651, #654, and #695 updated recommended presets.
  • #539 changed the default behavior of vue/html-closing-bracket-newline rule.

✨ Enhancements

Core:

  • #532 added support for ESLint 5.x.
  • #532 added support for slot-scope attribute.
  • #673 added support for new --fix-type option of ESLint.

New Rules:

  • #158 added vue/no-template-shadow rule.
  • #397 added vue/component-name-in-template-casing rule.
  • #542 added vue/no-spaces-around-equal-signs-in-attribute rule.
  • #545 added vue/no-unused-components rule.
  • #546 added vue/require-prop-type-constructor rule.
  • #551 added vue/multiline-html-element-content-newline rule.
  • #552 added vue/singleline-html-element-content-newline rule.
  • #602 added vue/use-v-on-exact rule.

New Options:

  • #471 enhanced the order option of vue/attribute-order rule to allow multiple categories on the same order.
  • #558 added ignoreWhenBindingPresent option to vue/no-unused-components rule to prevent false positive by dynamic bindings.
  • #579 added modifiers option to vue/valid-v-on rule to support custom modifiers.
  • #591 added ignoreProperties option to vue/no-multi-spaces rule to use vertical alignment style.
  • #678 added baseIndent option to vue/html-indent rule.

Other changes in Rules:

  • #544 changed vue/script-indent rule to not work on other than .vue files.
  • #642 improved the error message of vue/valid-v-on rule.
  • #643 improved the error message of vue/max-attributes-per-line rule.

🐛 Bug Fixes

  • #503 fixed vue/script-indent rule to make correct indentations.
  • #532 fixed several bugs:
    • fixed v-on directive without that argument to be parsed correctly.
    • fixed mustaches to allow empty content. (fixes #398)
    • fixed the list of tag names to be according to the spec. (fixes #423)
  • #529 fixed vue/require-default-prop rule to ignore boolean properties.
  • #555 fixed an autofix bug in the confliction of vue/html-self-closing and vue/component-name-in-template-casing.
  • #569 fixed an autofix bug in vue/order-in-components rule.
  • #613 fixed bugs with TypeScript in multiple rules.
  • #632 fixed bugs in multiple rules.
  • #638 fixed false positives in vue/valid-v-model rule.
  • #649 fixed wrong error message in vue/valid-v-model rule.
  • #655 fixed bugs in vue/require-render-return rule and vue/return-in-computed-property rule.
  • #659 fixed bugs about <pre> elements in vue/html-indent rule.
  • #675 fixed bugs about flatten ternary expressions in vue/script-indent rule.
  • #676 fixed bugs about comment indentations in vue/html-indent rule.
  • #681 fixed bugs about <textarea> elements in vue/html-indent rule.
  • #692 fixed bugs about filters syntax.

All commits: v4.7.1...v5.0.0