Releases: primer/eslint-plugin-primer-react
Releases · primer/eslint-plugin-primer-react
v0.4.2
Patch Changes
- #7
d9dfb8d
Thanks @colebemis! - AddskipImportCheck
option. By default, theno-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 settingskipImportCheck
totrue
. 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! - Theno-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
Patch Changes
- #3
8e9144f
Thanks @colebemis! - Add type metadata to no-deprecated-colors rule