From 882dccd20d40cda06ea7b133b4f869f513b1efef Mon Sep 17 00:00:00 2001 From: JC Franco Date: Mon, 28 Oct 2024 22:19:02 -0700 Subject: [PATCH] deprecate: deprecate `ban-props-on-host` rule --- .../eslint-plugin-calcite-components/docs/ban-props-on-host.md | 2 ++ .../src/rules/ban-props-on-host.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/eslint-plugin-calcite-components/docs/ban-props-on-host.md b/packages/eslint-plugin-calcite-components/docs/ban-props-on-host.md index fd60e56312c..8462c72d7ba 100644 --- a/packages/eslint-plugin-calcite-components/docs/ban-props-on-host.md +++ b/packages/eslint-plugin-calcite-components/docs/ban-props-on-host.md @@ -1,5 +1,7 @@ # ban-props-on-host +**Deprecated** This rule is deprecated and will be removed in a future release. This rule's primary use case will no longer exist after issue #10310 lands. + Ensures that a Component's `tag` does not use any of the given props-on-host. ## Config diff --git a/packages/eslint-plugin-calcite-components/src/rules/ban-props-on-host.ts b/packages/eslint-plugin-calcite-components/src/rules/ban-props-on-host.ts index 758e621b7d9..2230bb0c82e 100644 --- a/packages/eslint-plugin-calcite-components/src/rules/ban-props-on-host.ts +++ b/packages/eslint-plugin-calcite-components/src/rules/ban-props-on-host.ts @@ -11,6 +11,7 @@ const allowedAttributeName = (attributeName: string): boolean => const rule: Rule.RuleModule = { meta: { + deprecated: true, docs: { description: "This rule catches usage of banned props on .", category: "Possible Errors",