Skip to content

Conversation

@primer-css
Copy link
Contributor

@primer-css primer-css commented Sep 20, 2021

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Patch Changes

  • #7 d9dfb8d Thanks @colebemis! - Add skipImportCheck option. By default, the no-deprecated-colors rule will only check for deprecated colors used in functions and components that are imported from @primer/components. You can disable this behavior by setting skipImportCheck to true. This is useful for linting custom components that pass color-related props down to Primer React components.

  • #6 dd14594 Thanks @colebemis! - The no-deprecated-colors rule can now find deprecated colors in the following cases:

    • Nested sx properties:

      <Box sx={{'&:hover': {bg: 'bg.primary'}}}>
    • Functions in sx prop:

      <Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>

@primer-css primer-css force-pushed the changeset-release/main branch from 8a50dcc to ddd5385 Compare September 20, 2021 20:49
@colebemis colebemis merged commit 30d0a35 into main Sep 20, 2021
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.

2 participants