eslint-plugin-vue

Official ESLint plugin for Vue.js

MIT License

Downloads
12M
Stars
4.4K
Committers
215

Bot releases are hidden (Show)

eslint-plugin-vue - v6.1.2

Published by ota-meshi almost 5 years ago

πŸ› Bug Fixes

  • #1023 Fixed: list semver as dependencies

All commits: v6.1.1 -> v6.1.2

eslint-plugin-vue - v6.1.1

Published by ota-meshi almost 5 years ago

πŸ› Bug Fixes

  • #1019 Fixed crashes in no-reserved-component-names, match-component-file-name and component-definition-name-casing rules

All commits: v6.1.0 -> v6.1.1

eslint-plugin-vue - v6.1.0

Published by ota-meshi almost 5 years ago

✨ Enhancements

Core:

  • #985 Upgrade vue-eslint-parser to 7.0.0

New Rules:

  • #886 Added vue/static-class-names-order rule that enforce the order of static class names.
  • #945 Added vue/require-name-property rule that require a name property in Vue components.
  • #757 Added vue/no-reserved-component-names rule that disallow the use of reserved names in component definitions.
  • #763 Added vue/component-tags-order rule that enforce the order of component top-level elements.
  • #646 Added vue/component-definition-name-casing rule that enforce specific casing for component definition name.
  • #647 Added vue/valid-v-bind-sync rule that checks whether every .sync modifier on v-bind directives is valid.
  • #839 Added vue/no-deprecated-slot-attribute rule that disallows slot attribute.
  • #840 Added vue/no-deprecated-slot-scope-attribute rule that disallows slot-scope attribute.
  • #841 Added vue/no-unsupported-features rule that disallow unsupported Vue.js syntax on the specified version.
  • #843 Added vue/no-static-inline-styles rule that disallow static inline style attributes.
  • #959 Added vue/max-len rule that enforces a maximum line length.
  • #964 Added vue/no-irregular-whitespace rule that disallow irregular whitespace.

πŸ› Bug Fixes

  • #1015 Fixed wrong indentation.
  • #1016 Fixed "ignores" option of html-indent does not work

All commits: v6.0.2 -> v6.1.0

eslint-plugin-vue - v6.0.2

Published by ota-meshi almost 5 years ago

πŸ› 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

eslint-plugin-vue -

Published by ota-meshi almost 5 years ago

πŸ› Bug Fixes

  • #984 Fixed an issue where the message "requires a peer of eslint@^5.0.0" was reported when installing the eslint-plugin-vue.
eslint-plugin-vue - v6.0.0

Published by ota-meshi almost 5 years ago

πŸ’₯ Breaking Changes

  • #979 Dropped support for Node.js 6.x, ESLint 5.x.
  • #940 Dropped autofix of vue/prop-name-casing.
  • #823 Added Nuxt properties to the default order of vue/order-in-components.
  • #895 #807 Upgrade to vue-eslint-parser@6.0.4

✨ Enhancements

Core:

  • #807 Support new syntax in Vue.js 2.6.
  • #979 Added support for ESLint 6.x.

New Rules:

  • #798 Added vue/no-empty-pattern rule applies no-empty-pattern rule to expressions in <template>.
  • #794 Added vue/dot-location rule applies dot-location rule to expressions in <template>.
  • #795 Added vue/keyword-spacing rule applies keyword-spacing rule to expressions in <template>.
  • #838 Added vue/no-deprecated-scope-attribute rule that reports deprecated scope attribute in Vue.js v2.5.0+.
  • #837 Added vue/valid-v-slot rule that checks whether every v-slot directive is valid.
  • #836 Added vue/v-slot-style rule that enforces v-slot directive style which you should use shorthand or long form.

πŸ› Bug Fixes

  • #904 Fixed vue/use-v-on-exact to allows events with different key codes
  • #937 Fixed typo in vue/valid-v-else rule message

All commits: v5.2.3 -> v6.0.0

eslint-plugin-vue -

Published by mysticatea over 5 years ago

πŸ› Bug Fixes

  • 082c03de5dd1f6efe27e2f6dd9fd111f1434ce61 fixed a crash bug on ESLint 6.0.0.
eslint-plugin-vue -

Published by mysticatea over 5 years ago

πŸ› Bug Fixes

  • #821 fixed vue/no-boolean-default rule to not crash if the option is default-false and no default property.
eslint-plugin-vue -

Published by mysticatea over 5 years ago

πŸ› Bug Fixes

  • #816 fixed vue/no-async-in-computed-properties to not crash on return statements that have no value.
eslint-plugin-vue -

Published by mysticatea over 5 years ago

✨ 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

eslint-plugin-vue -

Published by mysticatea over 5 years ago

πŸ› 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

eslint-plugin-vue -

Published by mysticatea over 5 years ago

πŸ’₯ 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

eslint-plugin-vue -

Published by michalsnik almost 6 years ago

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

πŸ› Bug fixes

  • 0e518398203ad9d02a101ba091c194dbcf1a407b #675 Fix indentation for Conditional Types (e.g. ternary operator)
  • 78bd9367945304bc00c6d7f059d779cd5d5ee355 #659 Ignore preformatted tokens in vue/html-indent
  • 925190f1c739845ec6e33710deb42ace12bff6c5 #676 Improve comment indentation
  • 6ef20aa7848e6bc318d872293fb3ece976801753 #681 Don't indent contents of <textarea> elements

⭐ Enhancements

  • 147c765aceea6cb03af0e29cdda1ae000eed7c78 #678 Add baseIndent option to vue/html-indent
  • bd995fdd60c057c13086fde6c50f08e8c9108dbd #684 Add ignoreWhenEmpty option to vue/[single|multiline]-element-content-newline

βš™οΈ Chores / Updates

  • 61a667ff33222dc67f8c0c681ef7bc3431eb8845 #679 Docs: Fix typo
  • 025fb167bbe389c647f68e924f35615a574976d8 #534 Docs: Add vuepress interactive documentation
  • f00e87264dc21541c39d50162c8e39f3c3c08885 #692 Chore: Update vue-eslint-parser to v4
  • 4299ae0b92eb37602619352df8bf1023c4744038 #695 Config: Move vue/html-quotes to strongly-recommended config
eslint-plugin-vue - v5.0.0-beta.5

Published by armano2 almost 6 years ago

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

πŸ› Bug fixes

βš™οΈ Chores / Updates

eslint-plugin-vue - v5.0.0-beta.4

Published by armano2 almost 6 years ago

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

⭐ Features

  • 7c574f416c16573bf2a482b2378af65b71b08f39 #271 Add use-v-on-exact rule
  • b36337907aee50582bbd728c526ac04d3e3d5d07 #535 Add ignoreProperties option to no-multi-spaces rule
  • d0fd01f267b7fc5e6318d0cc7971ffac447f2ad0 #519 Add modifiers option to valid-v-on rule
  • 2049c5c0187a7d2c45b71d3a28611f81b1d6169b #556 Add "ignoreWhenBindingPresent" option to no-unused-component rule

πŸ› Bug fixes

  • f7a4dc01a97cd6c1b25609bd3caa5c45bb04af74 #580 Fix false positives regarding components inside SVGs
  • 7bb543803669d1003a07345e80b5150b929c8047 #648 The name of the iteration variable in valid-v-model message is incorrect
  • 501a4092c4e9a776574da4228938f0bb1174f105 #637 Don't ignore elements with "is" binding in component-name-in-template-casing
  • 023121c7c98edd4dbf1f1f499dbb84485f41a93c #550 Fix logic behind kabab-case and snake_case for propID
  • d1cd06ef146baf34b00cb967c3455c234a4ed59d #240 Fix false positives of iteration variable in valid-v-model
  • 6032f213bba901df65df71b16e18803f500e67a8 #595 #596 Fix issues with props:
  • 176aa8b209740b628705af09e291c9976ff89b98 #616 Improve error message in max-attributes-per-line
  • dcaccd5f75450069c4da11b69ab569c9a40f0f36 #614 Improve errors in valid-v-on, detect forbidden keywords
  • badd05113630a79aaa1be29e4785308a08bacf65 #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
  • 45be30659050853ff032cf81000a15657b0150c4 #606 Improve detection of components in no-unused-components rule
  • dd6ed4fb9d86a765d6f8e0894a928f9cbab61d3b #598 Ignore templates with src tag in no-unused-components
  • 096949bb8a93f05d752f339d850332e4f1968358 #615 Fix reporting correct name in require-prop-type-constructor
  • bc29d3d78f5c413fa102f6263e4ba9a7bae3f0a2 #560 Allow null type in require-prop-type-constructor
  • b1e1bb95ebfdc98a8187551c27c6d2b9f73b1625 #566 Fix: if no trailing comma, not to leave trailing comma after fixed of order-in-components
  • f0c8b379ce8e98f5f3cd0ee582ad6abbf6604f7f #554 Improve auto fix when html-self-closing and component-name-in-template-casing are active
  • 2049c5c0187a7d2c45b71d3a28611f81b1d6169b #556 Improve detecting custom components in no-unused-component rule

βš™οΈ Chores / Updates

  • 449789bb4385ec483bca8aab8a747dad65234a9b Add VSC launch configuration
  • cd26c7e8991dfd96b4716c26514d40c91fb5e698 Add "how to integrate with Sublime Text"
  • c1f43f55e2ccfc01a665b34e3df58e5876c1096b Add "how to integrate with Atom editor"
  • 562fde184a7a37f551fc98711a0bb4233c749606 Add "how to disable Vetur template validation"
  • 1b5a799bad163525196e3f8c49bcf88f842d21c5 ba3ba3de4245db1f86e9ec20e756db8774feeb85 5c435081e8051bf5f3dd1733e51d87ef1e80fa64 3ccf3ef209e45ee29b5d5235af97a8b8d6ea98aa 84743088046d9427f196fab36dc9efdc9754fee9 ce7cb10ed0e8925978e3ef493babde22e7dc2c67 117ffc619f15cbb4ed627d58b922e03f4d02acc0 Update readme and documentations
  • 2ddcec94ea49cbd132a87c2e072efb0704729ec1 remove eslint-plugin-html from dependencies
eslint-plugin-vue -

Published by michalsnik almost 6 years ago

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

ab624da a7d0b3c Update documentation

eslint-plugin-vue -

Published by michalsnik about 6 years ago

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

⭐ Features

βš™οΈ Chores / Updates

  • 1c410d82e1b4610d86d2a627f6cb3607ff33e337 #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)
  • 6a117c20b9fecb31c187b78fcc23748efe89ef2e #539 Change default settings in vue/html-closing-bracket-newline
  • 766b637285d6367bd3ba1945897322a03861b30e #529 Ignore Boolean props in vue/require-default-prop rule
  • 8d204094a03a3f41735d63af6014c1a2305df674 Update vue/no-use-v-if-v-for category to essential
  • 74f7dc634cfb9e38672e9295555de0fa6e488c5b Update Readme & Configs
eslint-plugin-vue -

Published by michalsnik about 6 years ago

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

βš™οΈ Chores

  • d64aa4974c62dc1d63990c0fada6892e970e5e36 #528 Docs: Add "working-with-rules" section in README
  • d5da8667c5efaf51101bab6a03811c04a219f5c7 #533 Update rules' categories and generate new predefined configs
eslint-plugin-vue -

Published by michalsnik about 6 years ago

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

πŸ› Bug fixes

  • b8743d01924f4d5fb0b3ae7ea6e0353fcb98b756 #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
eslint-plugin-vue -

Published by michalsnik about 6 years ago

Diff: v4.7.0 -> v4.7.1

πŸ› Bug fixes

  • 23fa9d4301ca545c1a0ed4a2f49005c82076819d #476 Allow props with validator without type in vue/require-prop-types

βš™οΈ Chores

  • 4b130cba2d7c3ff154b6e417e2423ff259ee58a0 #524 Docs: Add related links to rules
  • d12c3bb443bf0b6be3e26017dd84bdcf145a28cd #530 Docs: fix links to description of --fix option