Skip to content

Commit

Permalink
fix(rules): update no-system-props to include Blankslate (#76)
Browse files Browse the repository at this point in the history
* fix(rules): update no-system-props to include Blankslate

* Create six-pumas-live.md
  • Loading branch information
joshblack authored Aug 15, 2023
1 parent d9b0fd1 commit 1750256
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-pumas-live.md
Original file line number Diff line number Diff line change
@@ -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`.
1 change: 1 addition & 0 deletions src/rules/no-system-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])],
Expand Down

0 comments on commit 1750256

Please sign in to comment.