v7.13.0
✨ Enhancements
- Supports
<script setup>
- #1529 Added
vue/script-setup-uses-vars
rule that will find variables in<script setup>
used in<template>
and mark them as used. - #1559 Added
vue/no-export-in-script-setup
rule that disallows ES export in<script setup>
. - #1560 Added
vue/valid-define-props
rule that reportsdefineProps
compiler macros in the following cases:defineProps
are referencing locally declared variables.defineProps
has both a literal type and an argument. e.g.defineProps<{/*props*/}>({/*props*/})
defineProps
has been called multiple times.- Props are defined in both
defineProps
andexport default {}
. - Props are not defined in either
defineProps
orexport default {}
.
- #1561 Added
vue/valid-define-emits
rule that reportsdefineEmits
compiler macros in the following cases:defineEmits
are referencing locally declared variables.defineEmits
has both a literal type and an argument. e.g.defineEmits<(e: 'foo')=>void>(['bar'])
defineEmits
has been called multiple times.- Custom events are defined in both
defineEmits
andexport default {}
. - Custom events are not defined in either
defineEmits
orexport default {}
.
- #1532, #1559 Upgraded
vue-eslint-parser
. - Updated rules to support
<script setup>
.- #1531
vue/no-mutating-props
rule. - #1535
vue/no-reserved-keys
rule. - #1533
vue/no-async-in-computed-properties
rule. - #1534
vue/no-side-effects-in-computed-properties
rule. - #1536
vue/require-prop-type-constructor
rule. - #1539
vue/no-lifecycle-after-await
rule. - #1538
vue/require-valid-default-prop
rule. - #1542
vue/return-in-emits-validator
rule. - #1545
vue/require-default-prop
rule. - #1540
vue/no-setup-props-destructure
rule. - #1541
vue/no-watch-after-await
rule. - #1543
vue/no-template-shadow
rule. - #1544
vue/prop-name-casing
rule. - #1546
vue/require-prop-types
rule. - #1548
vue/require-explicit-emits
rule. - #1549
vue/custom-event-name-casing
rule. - #1550
vue/no-boolean-default
rule. - #1551
vue/no-restricted-call-after-await
rule. - #1552
vue/no-restricted-props
rule. - #1553
vue/no-unregistered-components
rule. - #1554
vue/no-unsupported-features
rule. - #1555
vue/no-unused-properties
rule. - #1556
vue/no-unused-refs
rule. - #1557
vue/require-emit-validator
rule. - #1558
vue/require-name-property
rule.
- #1531
- #1529 Added
- #1543 Updated
vue/no-template-shadow
rule to supportsetup()
. - #1556 Updated
vue/no-unused-refs
rule to supportsetup()
.
🐛 Bug Fixes
- #1527 Changed the indent rule so that the union type has the same indent as the binary expression.
⚙️ Updates
- #1528 Deprecated
vue/experimental-script-setup-vars
rule.
All commits: v7.12.1 -> v7.13.0