v0.5.0
Minor Changes
-
#10
31d069bThanks @colebemis! - Add acheckAllStringsoption to theno-deprecated-colorsrule.If
checkAllStringsis set totrue, theno-deprecated-colorsrule will check for deprecated colors in all strings. This is useful for catching uses of deprecated colors outside system props and thesxprop./* 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> }