From cb0491372e1cd8f5ff1d00179cfba50ff05d0027 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Tue, 29 Oct 2024 16:36:36 -0700 Subject: [PATCH] deprecate: deprecate `ban-props-on-host` rule (#10642) **Related Issue:** #10398 ## Summary Deprecates this rule for 3.x removal as it is no longer needed after #10310. --- .../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",