Skip to content

Commit 747fc82

Browse files
authored
Add exception for height and width for SkeletonBox in no-system-props rule (#389)
* Update no-system-props rule for SkeletonBox
1 parent d855bea commit 747fc82

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/chatty-penguins-breathe.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+
Add exception for height and width for SkeletonBox in no-system-props rule

src/rules/no-system-props.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const excludedComponentProps = new Map([
4848
['PointerBox', new Set(['bg'])],
4949
['Truncate', new Set(['maxWidth'])],
5050
['Stack', new Set(['padding', 'gap'])],
51+
['SkeletonBox', new Set(['width', 'height'])],
5152
])
5253

5354
const alwaysExcludedProps = new Set(['variant', 'size'])

0 commit comments

Comments
 (0)