Releases: primer/eslint-plugin-primer-react
Releases · primer/eslint-plugin-primer-react
v1.0.0
v0.7.4
Patch Changes
- #31
a64413aThanks @colebemis! -no-system-props: Always ignoresizeprop
v0.7.3
Patch Changes
- #27
19cbc53Thanks @colebemis! -no-system-props: Ignorebgprop onPointerBoxcomponent
v0.7.2
Patch Changes
- #24
e5565aeThanks @colebemis! - Replace references to@primer/componentswith@primer/react
v0.7.1
v0.7.0
v0.6.1
Patch Changes
- #15
9b96147Thanks @colebemis! - Theno-deprecated-colorsnow warns about deprecated and removed color variables
v0.6.0
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> }
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}`}}>
-