v5.0.0
💥 Breaking Changes
- #421 changed the
orderoptions ofvue/attribute-orderrule."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-newlinerule.
✨ Enhancements
Core:
- #532 added support for ESLint 5.x.
- #532 added support for
slot-scopeattribute. - #673 added support for new
--fix-typeoption of ESLint.
New Rules:
- #158 added
vue/no-template-shadowrule. - #397 added
vue/component-name-in-template-casingrule. - #542 added
vue/no-spaces-around-equal-signs-in-attributerule. - #545 added
vue/no-unused-componentsrule. - #546 added
vue/require-prop-type-constructorrule. - #551 added
vue/multiline-html-element-content-newlinerule. - #552 added
vue/singleline-html-element-content-newlinerule. - #602 added
vue/use-v-on-exactrule.
New Options:
- #471 enhanced the
orderoption ofvue/attribute-orderrule to allow multiple categories on the same order. - #558 added
ignoreWhenBindingPresentoption tovue/no-unused-componentsrule to prevent false positive by dynamic bindings. - #579 added
modifiersoption tovue/valid-v-onrule to support custom modifiers. - #591 added
ignorePropertiesoption tovue/no-multi-spacesrule to use vertical alignment style. - #678 added
baseIndentoption tovue/html-indentrule.
Other changes in Rules:
- #544 changed
vue/script-indentrule to not work on other than.vuefiles. - #642 improved the error message of
vue/valid-v-onrule. - #643 improved the error message of
vue/max-attributes-per-linerule.
🐛 Bug Fixes
- #503 fixed
vue/script-indentrule to make correct indentations. - #532 fixed several bugs:
- #529 fixed
vue/require-default-proprule to ignore boolean properties. - #555 fixed an autofix bug in the confliction of
vue/html-self-closingandvue/component-name-in-template-casing. - #569 fixed an autofix bug in
vue/order-in-componentsrule. - #613 fixed bugs with TypeScript in multiple rules.
- #632 fixed bugs in multiple rules.
- #638 fixed false positives in
vue/valid-v-modelrule. - #649 fixed wrong error message in
vue/valid-v-modelrule. - #655 fixed bugs in
vue/require-render-returnrule andvue/return-in-computed-propertyrule. - #659 fixed bugs about
<pre>elements invue/html-indentrule. - #675 fixed bugs about flatten ternary expressions in
vue/script-indentrule. - #676 fixed bugs about comment indentations in
vue/html-indentrule. - #681 fixed bugs about
<textarea>elements invue/html-indentrule. - #692 fixed bugs about filters syntax.
All commits: v4.7.1...v5.0.0