Skip to content

Releases: vuejs/eslint-plugin-vue

v5.2.0

14 Feb 08:54
v5.2.0
04b3c38
Compare
Choose a tag to compare

✨ 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

v5.1.0

14 Feb 06:09
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #703 removed vue/component-name-in-template-casing rule from vue/strongly-recommended preset.
  • #718 fixed a wrong behavior in vue/order-in-components rule, on Node.js 11.
  • #730 fixed false positives in vue/html-indent rule.

All commits: v5.0.0...v5.1.0

v5.0.0

14 Feb 05:58
Compare
Choose a tag to compare

💥 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

v5.0.0-beta.6

03 Dec 15:37
Compare
Choose a tag to compare
v5.0.0-beta.6 Pre-release
Pre-release

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 baseIndent option to vue/html-indent
  • bd995fd #684 Add ignoreWhenEmpty option to vue/[single|multiline]-element-content-newline

⚙️ Chores / Updates

v5.0.0-beta.5

03 Dec 15:26
Compare
Choose a tag to compare
v5.0.0-beta.5 Pre-release
Pre-release

Diff: v5.0.0-beta.4 -> v5.0.0-beta.5

🐛 Bug fixes

⚙️ Chores / Updates

v5.0.0-beta.4

18 Nov 11:42
Compare
Choose a tag to compare
v5.0.0-beta.4 Pre-release
Pre-release

Diff: v5.0.0-beta.3 -> v5.0.0-beta.4

⭐ Features

🐛 Bug fixes

⚙️ Chores / Updates

v5.0.0-beta.3

15 Nov 18:32
Compare
Choose a tag to compare

v5.0.0-beta.2

04 Aug 15:48
Compare
Choose a tag to compare
v5.0.0-beta.2 Pre-release
Pre-release

Diff: v5.0.0-beta.1 -> v5.0.0-beta.2

⭐ Features

⚙️ Chores / Updates

  • 1c410d8 #544 ❗️Ignore indent rules on files other than .vue (built in indent rules are not recommended to be used on other files than .vue, native eslint rule should be used instead)
  • 6a117c2 #539 Change default settings in vue/html-closing-bracket-newline
  • 766b637 #529 Ignore Boolean props in vue/require-default-prop rule
  • 8d20409 Update vue/no-use-v-if-v-for category to essential
  • 74f7dc6 Update Readme & Configs

v5.0.0-beta.1

26 Jul 18:03
Compare
Choose a tag to compare
v5.0.0-beta.1 Pre-release
Pre-release

Diff: v5.0.0-beta.0 -> v5.0.0-beta.1

⚙️ Chores

  • d64aa49 #528 Docs: Add "working-with-rules" section in README
  • d5da866 #533 Update rules' categories and generate new predefined configs

v5.0.0-beta.0

26 Jul 18:01
Compare
Choose a tag to compare
v5.0.0-beta.0 Pre-release
Pre-release

Diff: v4.7.0 -> v5.0.0-beta.0

🐛 Bug fixes

  • b8743d0 #421 Fix: v-bind order in vue/attribute-order rule

⚙️ Chores

  • #532 Support ESLint 5, upgrade vue-eslint-parser, drop support for Node 4 and old stuff. More details in linked PR