v0.5.0
Minor Changes
-
#10
31d069b
Thanks @colebemis! - Add acheckAllStrings
option to theno-deprecated-colors
rule.If
checkAllStrings
is set totrue
, theno-deprecated-colors
rule will check for deprecated colors in all strings. This is useful for catching uses of deprecated colors outside system props and thesx
prop./* eslint primer-react/no-deprecated-colors: ["warn", {"checkAllStrings": true}] */ import {Box} from '@primer/components' function ExampleComponent() { const styles = { // Enabling `checkAllStrings` will find deprecated colors used like this: color: 'text.primary' } return <Box sx={styles}>Hello</Box> }