Skip to content

Commit aa12209

Browse files
authored
Add width and height props to no-system-props for ConfirmationDialog (#435)
* Add width and height props to `no-system-props` for `ConfirmationDialog` Adds the `width` and `height` props to the `no-system-props` rule for the `ConfirmationDialog` component. * Add changeset
1 parent e7389f4 commit aa12209

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/dark-parents-kiss.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+
Adds `width` and `height` to `no-system-props` for `ConfirmationDialog`

src/rules/no-system-props.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const excludedComponentProps = new Map([
2424
['Breadcrumbs', new Set(['overflow'])],
2525
['Button', new Set(['alignContent'])],
2626
['CircleOcticon', new Set(['size'])],
27+
['ConfirmationDialog', new Set(['width', 'height'])],
2728
['Dialog', new Set(['width', 'height', 'position'])],
2829
['IssueLabelToken', new Set(['size'])],
2930
['Overlay', new Set(['width', 'height', 'maxHeight', 'position', 'top', 'right', 'bottom', 'left'])],

0 commit comments

Comments
 (0)