Skip to content

Commit 58b55e1

Browse files
authored
Merge pull request #27 from primer/colebemis-patch-1
no-system-props: Ignore `bg` prop on PointerBox
2 parents b29b255 + 19cbc53 commit 58b55e1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/hot-boats-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-primer-react": patch
3+
---
4+
5+
`no-system-props`: Ignore `bg` prop on `PointerBox` component

src/rules/no-system-props.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const excludedComponentProps = new Map([
1717
['Dialog', new Set(['width', 'height'])],
1818
['ProgressBar', new Set(['bg'])],
1919
['Spinner', new Set(['size'])],
20-
['StyledOcticon', new Set(['size'])]
20+
['StyledOcticon', new Set(['size'])],
21+
['PointerBox', new Set(['bg'])]
2122
])
2223

2324
const alwaysExcludedProps = new Set(['variant'])

0 commit comments

Comments
 (0)