From c363bbf1330fe8182d831531e2b7fde581125979 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Mon, 14 Aug 2023 11:09:49 -0500 Subject: [PATCH 1/2] fix(rules): update no-system-props to include Blankslate --- src/rules/no-system-props.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rules/no-system-props.js b/src/rules/no-system-props.js index 4428f5fe..dc329390 100644 --- a/src/rules/no-system-props.js +++ b/src/rules/no-system-props.js @@ -18,6 +18,7 @@ const excludedComponentProps = new Map([ ['AnchoredOverlay', new Set(['width', 'height'])], ['Avatar', new Set(['size'])], ['AvatarToken', new Set(['size'])], + ['Blankslate', new Set(['border'])], ['CircleOcticon', new Set(['size'])], ['Dialog', new Set(['width', 'height'])], ['IssueLabelToken', new Set(['size'])], From 5ea6a27b88ed3a8e045e4e4fea930d9ce2773f21 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Mon, 14 Aug 2023 11:11:48 -0500 Subject: [PATCH 2/2] Create six-pumas-live.md --- .changeset/six-pumas-live.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/six-pumas-live.md diff --git a/.changeset/six-pumas-live.md b/.changeset/six-pumas-live.md new file mode 100644 index 00000000..b5125a68 --- /dev/null +++ b/.changeset/six-pumas-live.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-primer-react": patch +--- + +Update the no-system-props rule to exclude the `border` prop for the `Blankslate` component from `@primer/react`.