Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v5.1.0
🐛 Bug Fixes
- #703 removed
vue/component-name-in-template-casing
rule fromvue/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
💥 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
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
baseIndent
option tovue/html-indent
- bd995fd #684 Add
ignoreWhenEmpty
option tovue/[single|multiline]-element-content-newline
⚙️ Chores / Updates
v5.0.0-beta.5
Diff: v5.0.0-beta.4 -> v5.0.0-beta.5
🐛 Bug fixes
- adb4a0d #655 Fix reporting returns in require-render-return and return-in-computed-property
- 07a7d9f #663 Fix case sensitivity in multiline-html-element-content-newline
- 276fe20 #666 Fix case sensitivity in singleline-html-element-content-newline
⚙️ Chores / Updates
v5.0.0-beta.4
Diff: v5.0.0-beta.3 -> v5.0.0-beta.4
⭐ Features
- 7c574f4 #271 Add use-v-on-exact rule
- b363379 #535 Add
ignoreProperties
option to no-multi-spaces rule - d0fd01f #519 Add
modifiers
option to valid-v-on rule - 2049c5c #556 Add "ignoreWhenBindingPresent" option to no-unused-component rule
🐛 Bug fixes
- f7a4dc0 #580 Fix false positives regarding components inside SVGs
- 7bb5438 #648 The name of the iteration variable in valid-v-model message is incorrect
- 501a409 #637 Don't ignore elements with "is" binding in component-name-in-template-casing
- 023121c #550 Fix logic behind
kabab-case
andsnake_case
for propID - d1cd06e #240 Fix false positives of iteration variable in valid-v-model
- 6032f21 #595 #596 Fix issues with props:
- prop-name-casing: is working now with array props
literals
- prop-name-casing: reports all errors if there are non Literal keys in it
- require-default-prop: allow to use shorthand, properties and function calls
- require-prop-types: reports names for types different than literals
- require-prop-types: fix false positive error when is set to empty array
- require-prop-types: will return now errors about each prop from ArrayExpression
- fix spread operator issues across all
prop
related rules
- prop-name-casing: is working now with array props
- 176aa8b #616 Improve error message in max-attributes-per-line
- dcaccd5 #614 Improve errors in valid-v-on, detect forbidden keywords
- badd051 #564 #575 Fix issues with TypeScript in require-default-prop, require-prop-types, require-prop-type-constructor, require-valid-default-prop
- Allow to use
export default (Vue as VueConstructor<Vue>).extend({
syntax
- Allow to use
- 45be306 #606 Improve detection of components in no-unused-components rule
- dd6ed4f #598 Ignore templates with src tag in no-unused-components
- 096949b #615 Fix reporting correct name in require-prop-type-constructor
- bc29d3d #560 Allow null type in require-prop-type-constructor
- b1e1bb9 #566 Fix: if no trailing comma, not to leave trailing comma after fixed of order-in-components
- f0c8b37 #554 Improve auto fix when html-self-closing and component-name-in-template-casing are active
- 2049c5c #556 Improve detecting custom components in no-unused-component rule
⚙️ Chores / Updates
- 449789b Add VSC launch configuration
- cd26c7e Add "how to integrate with Sublime Text"
- c1f43f5 Add "how to integrate with Atom editor"
- 562fde1 Add "how to disable Vetur template validation"
- 1b5a799 ba3ba3d 5c43508 3ccf3ef 8474308 ce7cb10 117ffc6 Update readme and documentations
- 2ddcec9 remove
eslint-plugin-html
from dependencies
v5.0.0-beta.3
Diff: v5.0.0-beta.2 -> v5.0.0-beta.3
⭐ Features
8673fc3 #414 Add no-unused-components rule
47cc8d3 #323 Add require-prop-type-constructor rule
bf7c2b7 #460 Add no-spaces-around-equal-signs-in-attribute rule
e53bfd3 #551 Add multiline-html-element-content-newline rule
3f5d41e #552 Add singleline-html-element-content-newline rule
⚙️ Chores / Updates
v5.0.0-beta.2
Diff: v5.0.0-beta.1 -> v5.0.0-beta.2
⭐ Features
- c49a2e2 #397 Add component-name-in-template-casing rule
- da4ea71 #158 Add no-template-shadow rule
- 341bccf #471 Add support for grouping ordered attributes
⚙️ 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 toessential
- 74f7dc6 Update Readme & Configs
v5.0.0-beta.1
Diff: v5.0.0-beta.0 -> v5.0.0-beta.1
⚙️ Chores
v5.0.0-beta.0
Diff: v4.7.0 -> v5.0.0-beta.0
🐛 Bug fixes
⚙️ Chores
- #532 Support ESLint 5,
upgrade vue-eslint-parser
, drop support for Node 4 and old stuff. More details in linked PR