v5.0.0
💥 Breaking Changes
- #421 changed the
order
options ofvue/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 ofvue/attribute-order
rule to allow multiple categories on the same order. - #558 added
ignoreWhenBindingPresent
option tovue/no-unused-components
rule to prevent false positive by dynamic bindings. - #579 added
modifiers
option tovue/valid-v-on
rule to support custom modifiers. - #591 added
ignoreProperties
option tovue/no-multi-spaces
rule to use vertical alignment style. - #678 added
baseIndent
option tovue/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:
- #529 fixed
vue/require-default-prop
rule to ignore boolean properties. - #555 fixed an autofix bug in the confliction of
vue/html-self-closing
andvue/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 andvue/return-in-computed-property
rule. - #659 fixed bugs about
<pre>
elements invue/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 invue/html-indent
rule. - #692 fixed bugs about filters syntax.
All commits: v4.7.1...v5.0.0