From 889c1929c5b9baf4285879600bd9745dc8564f16 Mon Sep 17 00:00:00 2001 From: Connor Pearson Date: Mon, 2 Sep 2024 12:06:03 +0200 Subject: [PATCH] feat(require-toggle-inside-transition): add additionalDirectives option (#2535) (#2537) --- .../rules/require-toggle-inside-transition.md | 29 +++++++++- lib/rules/require-toggle-inside-transition.js | 53 +++++++++++++++++-- .../rules/require-toggle-inside-transition.js | 39 ++++++++++++++ 3 files changed, 115 insertions(+), 6 deletions(-) diff --git a/docs/rules/require-toggle-inside-transition.md b/docs/rules/require-toggle-inside-transition.md index c62de95cb..c0760e381 100644 --- a/docs/rules/require-toggle-inside-transition.md +++ b/docs/rules/require-toggle-inside-transition.md @@ -33,7 +33,34 @@ This rule reports elements inside `` that do not control the display ## :wrench: Options -Nothing. +```json +{ + "vue/require-toggle-inside-transition": ["error", { + "additionalDirectives": [] + }] +} +``` + +- `additionalDirectives` (`string[]`) ... Custom directives which will satisfy this rule in addition to `v-show` and `v-if`. Should be added without the `v-` prefix. + +### `additionalDirectives: ["dialog"]` + + + +```vue +