Skip to content

Commit

Permalink
Create weak-tips-brush.md
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis authored Sep 18, 2021
1 parent bdf389c commit dd14594
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .changeset/weak-tips-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"eslint-plugin-primer-react": patch
---

The `no-deprecated-colors` rule can now find deprecated colors in the following cases:

* Nested `sx` properties:

```jsx
<Box sx={{'&:hover': {bg: 'bg.primary'}}}>
```

* Functions in `sx` prop:

```jsx
<Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>
```

0 comments on commit dd14594

Please sign in to comment.