Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v6.0.2
🐛 Bug Fixes
- #962 Fixed false positives inside the ternary operator in no-async-in-computed-properties.
- #963 Fixed an issue that caused an error when extra commas were included in require-prop-type-constructor.
- #1009 Fixed an issue that code was broken by autofix of require-prop-type-constructor.
- #1010 Fixed broken links in messages.
All commits: v6.0.1 -> v6.0.2
v6.0.1
v6.0.0
💥 Breaking Changes
- #979 Dropped support for Node.js 6.x, ESLint 5.x.
- #940 Dropped autofix of vue/prop-name-casing.
- #823 Added Nuxtproperties to the default order ofvue/order-in-components.
- #895 #807 Upgrade to vue-eslint-parser@6.0.4
✨ Enhancements
Core:
New Rules:
- #798 Added vue/no-empty-patternrule appliesno-empty-patternrule to expressions in<template>.
- #794 Added vue/dot-locationrule appliesdot-locationrule to expressions in<template>.
- #795 Added vue/keyword-spacingrule applieskeyword-spacingrule to expressions in<template>.
- #838 Added vue/no-deprecated-scope-attributerule that reports deprecatedscopeattribute in Vue.js v2.5.0+.
- #837 Added vue/valid-v-slotrule that checks whether everyv-slotdirective is valid.
- #836 Added vue/v-slot-stylerule that enforcesv-slotdirective style which you should use shorthand or long form.
🐛 Bug Fixes
- #904 Fixed vue/use-v-on-exactto allows events with different key codes
- #937 Fixed typo in vue/valid-v-elserule message
All commits: v5.2.3 -> v6.0.0
v5.2.3
v5.2.2
v5.2.1
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
v5.1.0
🐛 Bug Fixes
- #703 removed vue/component-name-in-template-casingrule fromvue/strongly-recommendedpreset.
- #718 fixed a wrong behavior in vue/order-in-componentsrule, on Node.js 11.
- #730 fixed false positives in vue/html-indentrule.
All commits: v5.0.0...v5.1.0
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
v5.0.0-beta.6
Diff: v5.0.0-beta.5 -> v5.0.0-beta.6
🐛 Bug fixes
- 0e51839 #675 Fix indentation for Conditional Types (e.g. ternary operator)
- 78bd936 #659 Ignore preformatted tokens in vue/html-indent
- 925190f #676 Improve comment indentation
- 6ef20aa #681 Don't indent contents of <textarea>elements
⭐ Enhancements
- 147c765 #678 Add baseIndentoption tovue/html-indent
- bd995fd #684 Add ignoreWhenEmptyoption tovue/[single|multiline]-element-content-newline