Skip to content

Commit 9e68db9

Browse files
authored
Always ignore size prop
1 parent f8381ee commit 9e68db9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rules/no-system-props.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ const utilityComponents = new Set(['Box', 'Text'])
1313
// Components for which we allow a set of prop names
1414
const excludedComponentProps = new Map([
1515
['AnchoredOverlay', new Set(['width', 'height'])],
16-
['Avatar', new Set(['size'])],
1716
['Dialog', new Set(['width', 'height'])],
1817
['ProgressBar', new Set(['bg'])],
19-
['Spinner', new Set(['size'])],
20-
['StyledOcticon', new Set(['size'])],
2118
['PointerBox', new Set(['bg'])]
2219
])
2320

24-
const alwaysExcludedProps = new Set(['variant'])
21+
const alwaysExcludedProps = new Set(['variant', 'size'])
2522

2623
module.exports = {
2724
meta: {

0 commit comments

Comments
 (0)