From ee3cc08cbc919fc555958d35fa2ac9099d69db18 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 5 Aug 2023 11:41:07 +0900 Subject: [PATCH] Rename `vue/no-setup-props-destructure` to `vue/no-setup-props-reactivity-loss` and remove from config --- docs/rules/index.md | 3 +- docs/rules/no-setup-props-destructure.md | 6 +- docs/rules/no-setup-props-reactivity-loss.md | 102 +++ lib/configs/essential.js | 1 - lib/configs/vue3-essential.js | 1 - lib/index.js | 1 + lib/rules/no-setup-props-destructure.js | 265 +------ lib/rules/no-setup-props-reactivity-loss.js | 272 +++++++ .../rules/no-setup-props-reactivity-loss.js | 682 ++++++++++++++++++ 9 files changed, 1071 insertions(+), 262 deletions(-) create mode 100644 docs/rules/no-setup-props-reactivity-loss.md create mode 100644 lib/rules/no-setup-props-reactivity-loss.js create mode 100644 tests/lib/rules/no-setup-props-reactivity-loss.js diff --git a/docs/rules/index.md b/docs/rules/index.md index 6b06a7c71..d5525a785 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -79,7 +79,6 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue | [vue/no-reserved-component-names](./no-reserved-component-names.md) | disallow the use of reserved names in component definitions | | :three::two::hammer: | | [vue/no-reserved-keys](./no-reserved-keys.md) | disallow overwriting reserved keys | | :three::two::hammer: | | [vue/no-reserved-props](./no-reserved-props.md) | disallow reserved names in props | | :three::two::warning: | -| [vue/no-setup-props-destructure](./no-setup-props-destructure.md) | disallow destructuring of `props` passed to `setup` | | :three::two::hammer: | | [vue/no-shared-component-data](./no-shared-component-data.md) | enforce component's data property to be a function | :wrench: | :three::two::warning: | | [vue/no-side-effects-in-computed-properties](./no-side-effects-in-computed-properties.md) | disallow side effects in computed properties | | :three::two::warning: | | [vue/no-template-key](./no-template-key.md) | disallow `key` attribute on `