Skip to content

Releases: primer/eslint-plugin-primer-react

v0.4.2

20 Sep 20:50
30d0a35
Compare
Choose a tag to compare

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.
 "primer-react/no-deprecated-colors": ["warn", {"skipImportCheck": true}]
  • #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}`}}>

v0.4.1

19 Aug 18:25
5221e8c
Compare
Choose a tag to compare

Patch Changes