Official ESLint plugin for Vue.js
MIT License
Bot releases are hidden (Show)
Published by ota-meshi over 1 year ago
defineOptions
to vue/no-duplicate-attr-inheritance
rule.<script setup>
to vue/no-dupe-keys
rule.additionalProperties
to vue/no-deprecated-router-link-tag-prop
schema.vue/no-undef-properties
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.13.0...v9.14.0
Published by ota-meshi over 1 year ago
Support for Vue 3.3 "Rurouni Kenshin" π
see https://blog.vuejs.org/posts/vue-3-3
vue/prefer-define-options
rule that enforces use of defineOptions
instead of default export.vue/valid-define-options
rule that checks whether defineOptions
compiler macro is valid.defineOptions
and defineSlots
to vue/define-macros-order
rule.defineOptions
and defineSlots
to vue/no-unsupported-features
rule.defineEmits
type syntax to vue/require-explicit-emits
rule.defineOptions
to vue/component-definition-name-casing
rule.defineOptions
to vue/match-component-file-name
rule.defineOptions
to vue/multi-word-component-names
rule.defineOptions
to vue/no-reserved-component-names
rule.defineOptions
to vue/no-restricted-component-options
rule.defineOptions
to vue/order-in-components
rule.defineOptions
to vue/padding-lines-in-component-definition
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.12.0...v9.13.0
Published by ota-meshi over 1 year ago
shallowOnly
option to vue/no-mutating-props
rule.vue/no-root-v-if
rule that disallows the v-if
directive on the root element.meta
object to the processor.meta
object to the plugin.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.11.1...v9.12.0
Published by ota-meshi over 1 year ago
Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.11.0...v9.11.1
Published by ota-meshi over 1 year ago
unreferencedOptions
option to vue/no-unused-properties
rule.vue/camelcase
rule when using ESLint >= v8.38.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.10.0...v9.11.0
Published by ota-meshi over 1 year ago
vue/no-template-target-blank
rule.@eslint-community/eslint-utils
package.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.9.0...v9.10.0
Published by ota-meshi almost 2 years ago
vue/array-element-newline
rule that applies the core array-element-newline
rule to expressions in <template>
.vue/script-indent
rule to support more TypeScript syntax.vue/padding-lines-in-component-definition
rule that requires or disallows padding lines in component definition.ATTR_DYNAMIC
, ATTR_STATIC
, and ATTR_SHORTHAND_BOOL
options to vue/attributes-order
rule.vue/component-name-in-template-casing
rule.vue/component-api-style
rule report messages.vue/define-macros-order
rule to hoist secondary expressions correctly.<script setup>
in vue/no-undef-components
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.8.0...v9.9.0
Published by ota-meshi almost 2 years ago
vue/require-prop-comment
rule that requires props to have a comment.vue/require-name-property
rule.<Textarea>
components in vue/no-textarea-mustache
rule.vue/define-macros-order
rule.vue/component-name-in-template-casing
rule.vue/attribute-hyphenation
rule to disable autofix for attributes containing underscores (_
).Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.7.0...v9.8.0
Published by ota-meshi almost 2 years ago
vue/multiline-ternary
rule that applies the core multiline-ternary
rule to expressions in <template>
and <style>
.vue/v-on-handler-style
rule that enforces writing style for handlers in v-on
directives.globals
option to vue/component-name-in-template-casing
rule.vue/no-restricted-class
rule.vue/v-on-function-call
rule. Use the new vue/v-on-handler-style
rule instead.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.6.0...v9.7.0
Published by ota-meshi about 2 years ago
vue/no-required-prop-with-default
rule that enforces props with default values ββto be optional.consistent
option to vue/padding-line-between-tags
rule.vue/no-ref-as-operand
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.5.1...v9.6.0
Published by ota-meshi about 2 years ago
<script setup>
with TypeScript in vue/no-undef-components
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.5.0...v9.5.1
Published by ota-meshi about 2 years ago
vue/no-ref-object-destructure
rule that reports the destructuring of ref objects causing the value to lose reactivity.vue/no-undef-components
rule to report when type-only imports are used.vue/padding-line-between-tags
rule that requires or disallows newlines between sibling tags in template.vue/define-emits-declaration
rule that enforces the declaration style of defineEmits
.vue/define-props-declaration
rule that enforces the declaration style of defineProps
.vue/order-in-components
rule to be auto-fixable even when using PropType
.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.4.0...v9.5.0
Thanks @dev1437, @Amorites, @acupofspirt for your contributions!
Published by ota-meshi about 2 years ago
vue/no-mutating-props
ruleFull Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.3.0...v9.4.0
Published by ota-meshi about 2 years ago
<script setup>
to vue/component-name-in-template-casing
rule.vue/custom-event-name-casing
, vue/no-restricted-custom-event
, and vue/require-explicit-emits
rules.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.2.0...v9.3.0
Published by ota-meshi over 2 years ago
vue/no-unsupported-features
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.1.1...v9.2.0
Published by ota-meshi over 2 years ago
vue/no-unused-components
ruleFull Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.1.0...v9.1.1
Published by ota-meshi over 2 years ago
vue/prefer-import-from-vue
rule to skip side-effect imports in .d.ts
files.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.0.1...v9.1.0
Published by ota-meshi over 2 years ago
vue/no-expose-after-await
ruleFull Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v9.0.0...v9.0.1
Published by ota-meshi over 2 years ago
vue/custom-event-name-casing
rule to camelCase
.vue/html-closing-bracket-spacing
and vue/html-closing-bracket-newline
rules for top-level tags.plugin:vue/vue3-essential
config:
vue/no-child-content
rulevue/no-expose-after-await
rulevue/no-reserved-component-names
rulevue/no-use-computed-property-like-method
rulevue/no-v-text-v-html-on-component
rulevue/prefer-import-from-vue
rulevue/valid-attribute-name
ruleplugin:vue/vue3-strongly-recommended
config:
plugin:vue/vue3-recommended
config:
plugin:vue/essential
config:
vue/no-child-content
rulevue/no-reserved-component-names
rulevue/no-use-computed-property-like-method
rulevue/no-v-text-v-html-on-component
rulevue/valid-attribute-name
rulevue/valid-model-definition
rulevue/no-export-in-script-setup
rule *
vue/no-ref-as-operand
rule *
vue/no-setup-props-destructure
rule *
vue/return-in-emits-validator
rule *
vue/valid-define-emits
rule *
vue/valid-define-props
rule *
plugin:vue/strongly-recommended
config:
plugin:vue/recommended
config:
Note: The rules marked with * are now included in the plugin:vue/essential
config because @vue/composition-api and unplugin-vue2-script-setup add (limited) support for these Vue 3 features in Vue 2. If you don't use those libraries, enabling these rules shouldn't affect you.
vue/no-invalid-model-keys
rule is now deprecated, as it's renamed to vue/valid-model-definition
vue/script-setup-uses-vars
rule is now deprecated, as it's no longer needed with the upgrade to vue-eslint-parser to v9vue/setup-compiler-macros
environment is now deprecated, as it's no longer needed with the upgrade to vue-eslint-parser to v9Previously deprecated rules are removed completely:
vue/experimental-script-setup-vars
rule (deprecated in v7.13.0): not needed anymorevue/name-property-casing
rule (deprecated in v7.0.0): use vue/component-definition-name-casing
insteadvue/no-confusing-v-for-v-if
rule (deprecated in v5.0.0): use vue/no-use-v-if-with-v-for
insteadvue/no-unregistered-components
rule (deprecated in v8.4.0): use vue/no-undef-components
insteadPreviously deprecated internal util methods are removed completely:
getComponentProps
: use getComponentPropsFromOptions
insteadgetComponentEmits
: use getComponentEmitsFromOptions
insteadvue/match-component-file-name
rule fixable via editor suggestions.<script setup>
in vue/no-expose-after-await
rule.vue/valid-attribute-name
rule.vue/define-macros-order
rule when there are multiple <script>
tags.vue/html-closing-bracket-spacing
and vue/html-closing-bracket-newline
rules for top-level tags.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v8.7.0...v9.0.0
Published by ota-meshi over 2 years ago
vue/define-macros-order
rule.Full Changelog: https://github.com/vuejs/eslint-plugin-vue/compare/v8.7.0...v8.7.1