Skip to content

Commit

Permalink
Always ignore size prop
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis authored Feb 17, 2022
1 parent f8381ee commit 9e68db9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rules/no-system-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ const utilityComponents = new Set(['Box', 'Text'])
// Components for which we allow a set of prop names
const excludedComponentProps = new Map([
['AnchoredOverlay', new Set(['width', 'height'])],
['Avatar', new Set(['size'])],
['Dialog', new Set(['width', 'height'])],
['ProgressBar', new Set(['bg'])],
['Spinner', new Set(['size'])],
['StyledOcticon', new Set(['size'])],
['PointerBox', new Set(['bg'])]
])

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

module.exports = {
meta: {
Expand Down

0 comments on commit 9e68db9

Please sign in to comment.