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`. 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'])],