Update dependency eslint-plugin-vue to v7.18.0
This MR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| eslint-plugin-vue (source) | ^7.1.0 -> 7.18.0 |
Release Notes
vuejs/eslint-plugin-vue
v7.18.0
✨ Enhancements
-
#1626 Added
vue/component-api-stylerule that aims to make the API style you use to define Vue components consistent in your project.
⚙ ️ Updates
-
#1619 Updated
vue/script-indentrule to support Class static block and typescript-eslint v5(rc) -
#1620 Changed type determination logic of type-only
definePropsto follow vue v3.2.9.
All commits: v7.17.0 -> v7.18.0
v7.17.0
✨ Enhancements
-
#1605 Added
vue/no-v-textrule that disallowv-textdirective.
⚙ Updates
- #1607, #1610 Added support for ESLint v8 (beta). Note that ESLint v8 beta support will be removed without notice once a stable version of ESLint v8 is released.
All commits: v7.16.0 -> v7.17.0
v7.16.0
✨ Enhancements
-
#1596 Added
vue/valid-v-memorule that enforce validv-memodirectives. -
#1599 Updated
vue/no-unsupported-featuresrule to support Vue 3.2 syntaxes.
🐛 Bug Fixes
-
#1602 Fixed false positives for namespace component in
vue/script-setup-uses-varsrule.
⚙ Updates
-
#1598 Updated
vue/no-restricted-v-bindandvue/valid-v-bindrules to supportattrmodifier.
All commits: v7.15.2 -> v7.16.0
v7.15.2
🐛 Bug Fixes
-
#1600 Fixed false positives in
vue/no-use-computed-property-like-methodrule.
All commits: v7.15.1 -> v7.15.2
v7.15.1
🐛 Bug Fixes
-
#1590 Fixed message typo in
vue/no-reserved-keysrule. -
#1591 Fixed false positives for type-only defineProps in
vue/require-default-proprule.
All commits: v7.15.0 -> v7.15.1
v7.15.0
✨ Enhancements
-
#1234 Added
vue/no-use-computed-property-like-methodrule that disallows to use computed property like method. -
#1586 Added
vue/block-langrule rule that disallows the use of languages other than those available in the your application for thelangattribute of block elements. -
#1576 Updated some rules to support style CSS variable injection.
-
vue/comma-spacingrule. -
vue/dot-notationrule. -
vue/eqeqeqrule. -
vue/func-call-spacingrule. -
vue/no-extra-parensrule. -
vue/no-restricted-syntaxrule. -
vue/no-useless-concatrule. -
vue/prefer-templaterule. -
vue/space-in-parensrule. -
vue/space-infix-opsrule. -
vue/space-unary-opsrule. -
vue/template-curly-spacingrule.
-
🐛 Bug Fixes
-
#1584 Fixed false positives for call expression in
vue/no-mutating-propsrule.
⚙ Updates
- #1576 Upgraded vue-eslint-parser.
All commits: v7.14.0 -> v7.15.0
v7.14.0
✨ Enhancements
-
#1568 Added
vue/require-exposerule that enforces the component to explicitly declare the exposed properties to the component usingexpose. -
#1566 Updated
vue/no-unused-propertiesrule to supportexpose -
#1574 Updated some rules to support style CSS vars injection.
-
vue/no-parsing-errorrule. -
vue/no-unused-propertiesrule. -
vue/script-setup-uses-varsrule. -
vue/no-unsupported-featuresrule.
-
-
#1565 Improved report location of
vue/valid-v-xxxrules.
🐛 Bug Fixes
-
#1569 Fixed false positives for
<script setup>invue/no-lifecycle-after-awaitrule. -
#1569 Fixed false positives for
<script setup>invue/no-watch-after-awaitrule. -
#1569 Fixed false positives for
<script setup>invue/no-restricted-call-after-awaitrule. -
#1575 Downgraded to
semvercompatible with Node v8.
All commits: v7.13.0 -> v7.14.0
v7.13.0
✨ Enhancements
- Supports
<script setup>-
#1529 Added
vue/script-setup-uses-varsrule that will find variables in<script setup>used in<template>and mark them as used. -
#1559 Added
vue/no-export-in-script-setuprule that disallows ES export in<script setup>. -
#1560 Added
vue/valid-define-propsrule that reportsdefinePropscompiler macros in the following cases:-
definePropsare referencing locally declared variables. -
definePropshas both a literal type and an argument. e.g.defineProps<{/*props*/}>({/*props*/}) -
definePropshas been called multiple times. - Props are defined in both
definePropsandexport default {}. - Props are not defined in either
definePropsorexport default {}.
-
-
#1561 Added
vue/valid-define-emitsrule that reportsdefineEmitscompiler macros in the following cases:-
defineEmitsare referencing locally declared variables. -
defineEmitshas both a literal type and an argument. e.g.defineEmits<(e: 'foo')=>void>(['bar']) -
defineEmitshas been called multiple times. - Custom events are defined in both
defineEmitsandexport default {}. - Custom events are not defined in either
defineEmitsorexport default {}.
-
-
#1532, #1559 Upgraded
vue-eslint-parser. - Updated rules to support
<script setup>.-
#1531
vue/no-mutating-propsrule. -
#1535
vue/no-reserved-keysrule. -
#1533
vue/no-async-in-computed-propertiesrule. -
#1534
vue/no-side-effects-in-computed-propertiesrule. -
#1536
vue/require-prop-type-constructorrule. -
#1539
vue/no-lifecycle-after-awaitrule. -
#1538
vue/require-valid-default-proprule. -
#1542
vue/return-in-emits-validatorrule. -
#1545
vue/require-default-proprule. -
#1540
vue/no-setup-props-destructurerule. -
#1541
vue/no-watch-after-awaitrule. -
#1543
vue/no-template-shadowrule. -
#1544
vue/prop-name-casingrule. -
#1546
vue/require-prop-typesrule. -
#1548
vue/require-explicit-emitsrule. -
#1549
vue/custom-event-name-casingrule. -
#1550
vue/no-boolean-defaultrule. -
#1551
vue/no-restricted-call-after-awaitrule. -
#1552
vue/no-restricted-propsrule. -
#1553
vue/no-unregistered-componentsrule. -
#1554
vue/no-unsupported-featuresrule. -
#1555
vue/no-unused-propertiesrule. -
#1556
vue/no-unused-refsrule. -
#1557
vue/require-emit-validatorrule. -
#1558
vue/require-name-propertyrule.
-
#1531
-
#1529 Added
-
#1543 Updated
vue/no-template-shadowrule to supportsetup(). -
#1556 Updated
vue/no-unused-refsrule 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-varsrule.
All commits: v7.12.1 -> v7.13.0
v7.12.1
🐛 Bug Fixes
-
#1525 Fixed false positives for trailing comma with import in
vue/script-indentrule.
All commits: v7.12.0 -> v7.12.1
v7.12.0
✨ Enhancements
-
#1520 Improved
vue/script-indentrule to support TypeScript syntax. -
#1481 Improved
vue/script-indentrule andvue/html-indentrule to support ES2022 Class Fields syntax. (When using espree v8+.)
🐛 Bug Fixes
-
#1521 Fixed wrong auto-fix in
vue/no-deprecated-slot-attributerule andvue/no-deprecated-slot-scope-attributerule. -
#1522 Fixed false positives for default with type Function in
vue/no-deprecated-props-default-thisrule.
⚙ ️ Updates
- #1481 Supports ES2022 Class Fields. (When using espree v8+.)
All commits: v7.11.1 -> v7.12.0
v7.11.1
🐛 Bug Fixes
-
#1515 Fixed crash when using
objectsInObjectsoption invue/object-curly-spacingrule.
v7.11.0
✨ Enhancements
New Rules:
-
#1506 Added
vue/no-this-in-before-route-enterrule that disallowthisusage in abeforeRouteEntermethod. -
#1510 Added
vue/no-deprecated-v-isrule that disallow deprecatedv-isdirective (in Vue.js 3.1.0+).
Other changes in Rules:
-
#1501 Made
vue/no-deprecated-destroyed-lifecyclerule to auto-fixable.
⚙ ️ Updates
-
#1509 Added supports for
is="vue:"(Vue 3.1.0+).
All commits: v7.10.0 -> v7.11.0
v7.10.0
✨ Enhancements
New Rules:
-
#1487 Added
vue/require-emit-validatorrule that enforce the validator definition in emits.
Other changes in Rules:
-
#1493 Changed
vue/this-in-templaterule to support autofix.
⚙ Updates
-
#1484 Changed
vue/attribute-hyphenationrule to ignore SVG attributes.
All commits: v7.9.0 -> v7.10.0
v7.9.0
✨ Enhancements
New Rules:
-
#1466 Added
vue/no-invalid-model-keysrule that disallow invalid model option keys. -
#1474 Added
vue/no-unused-refsrule that reports refs that are defined using therefattribute in<template>but are not used via$refs.
Other changes in Rules:
-
#1465 Added
singleline.allowFirstLineoption tovue/max-attributes-per-linerule.
🐛 Bug Fixes
-
#1469 Fixed false negative in
asexpression forvue/require-valid-default-proprule.
All commits: v7.8.0 -> v7.9.0
v7.8.0
✨ Enhancements
-
#1450 Changed
vue/require-direct-exportrule to allow more cases (e.g.export default defineComponent({})). -
#1451 Changed
vue/valid-v-showrule to disallowv-showin<template>tag.
v7.7.0
✨ Enhancements
Changes in Rules:
-
#1444 Added
ignorePublicMembersoption tovue/no-unused-propertiesrule.
🐛 Bug Fixes
-
#1446 Fixed false negatives for member access with
$invue/this-in-templaterule.
⚙ Updates
-
#1448 Upgrade
vue-eslint-parserto v7.6.0.
This makes the parser to case sensitive to the name used to determine the element when the file is SFC.
All commits: v7.6.0 -> v7.7.0
v7.6.0
✨ Enhancements
New Rules:
Other changes in Rules:
-
#1429 Added
"SLOT"option tovue/attributes-orderrule to specifyv-slotorder. -
#1430 Changed the option schema for the following rules to be stricter. Incorrect options are reported as errors.
-
vue/attributes-orderrule. -
vue/component-tags-orderrule. -
vue/max-attributes-per-linerule. -
vue/new-line-between-multi-line-propertyrule. -
vue/no-bare-strings-in-templaterule. -
vue/no-duplicate-attributesrule. -
vue/no-potential-component-option-typorule. -
vue/no-reserved-component-namesrule. -
vue/no-use-v-if-with-v-forrule. -
vue/no-useless-mustachesrule. -
vue/no-useless-v-bindrule. -
vue/valid-v-slotrule.
-
-
#1436 Improved autofix of
vue/no-deprecated-slot-attributerule when slot name contains_.
🐛 Bug Fixes
-
#1434 Fixed false negatives for
v-bind="object"invue/attributes-orderrule.
⚙ Updates
-
#1440 Upgrade
vue-eslint-parserto v7.5.0.
This change fixes an issue that caused a crash when using some queries withvue/no-restricted-syntaxrule.
All commits: v7.5.0 -> v7.6.0
v7.5.0
✨ Enhancements
New Rules:
-
#1401 Added
vue/no-constant-conditionrule appliesno-constant-conditionrule to expressions in<template>,v-if,v-showandv-else-if. -
#1400 Added
vue/next-tick-stylerule that enforces whether the callback version or Promise version should be used inVue.nextTickandthis.$nextTick. -
#1404 Added
vue/valid-next-tickrule that enforce validnextTickfunction calls.
Other changes in Rules:
-
#1396 Make
vue/no-ref-as-operandrule fixable.
🐛 Bug Fixes
-
#1398 Added
computed()support tovue/no-async-in-computed-propertiesrule. -
#1406 Added
computed()support tovue/return-in-computed-propertyrule. -
#1407 Added
computed()support tovue/no-side-effects-in-computed-propertiesrule. -
#1419 Fixed false positives for mixin() in
vue/one-component-per-fileandvue/require-name-propertyrules. -
#1421 Fixed crash for toLocaleString() in
vue/no-unused-propertiesrule. - #1420 Fixed false positives for quoted 'emits' in vue/require-explicit-emits rule.
⚙ Updates
- #1422 Upgrade vue-eslint-parser to 7.4.1
⚙ Chores
-
#1392 Refactor
vue/attributes-orderrule. -
#1405 Refactor
vue/no-async-in-computed-propertiesrule.
All commits: v7.4.1 -> v7.5.0
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.