Skip to content

Conversation

@pksjce
Copy link
Contributor

@pksjce pksjce commented Feb 16, 2022

This fixes the ignores added in places like this https://github.com/github/memex/blob/main/src/client/components/tokenized-filter-input.tsx#L376

The linter thinks size property must live inside sx prop. But there are many exceptions to this. Button/IconButton is one and I'm adding it here.

However, the liinter may still FAIL in more complex use case like import {Button as Button2} from '@primer/react'; <Button2 size="large" />

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2022

🦋 Changeset detected

Latest commit: 8162dd2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-primer-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pksjce pksjce requested a review from colebemis February 16, 2022 13:49
@colebemis
Copy link
Contributor

@pksjce Can you add a changeset for this?

@colebemis
Copy link
Contributor

Closing in favor of #31

@colebemis colebemis closed this Feb 17, 2022
@pksjce
Copy link
Contributor Author

pksjce commented Feb 20, 2022

Awesome! thanks for that!

@pksjce pksjce deleted the pk/button-size-rule branch February 20, 2022 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants