v0.4.2
Patch Changes
- #7
d9dfb8dThanks @colebemis! - AddskipImportCheckoption. By default, theno-deprecated-colorsrule will only check for deprecated colors used in functions and components that are imported from@primer/components. You can disable this behavior by settingskipImportChecktotrue. 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
dd14594Thanks @colebemis! - Theno-deprecated-colorsrule can now find deprecated colors in the following cases:-
Nested
sxproperties:<Box sx={{'&:hover': {bg: 'bg.primary'}}}>
-
Functions in
sxprop:<Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>
-