Skip to content

Commit 30d0a35

Browse files
authored
Merge pull request #9 from primer/changeset-release/main
Release Tracking
2 parents 6bbafca + ddd5385 commit 30d0a35

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

.changeset/curly-carrots-tickle.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/weak-tips-brush.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
# eslint-plugin-primer-react
22

3-
## 0.4.1
3+
## 0.4.2
4+
45
### Patch Changes
56

7+
- [#7](https://github.com/primer/eslint-plugin-primer-react/pull/7) [`d9dfb8d`](https://github.com/primer/eslint-plugin-primer-react/commit/d9dfb8de6d6dc42efe606517db7a0dd90d5c5578) Thanks [@colebemis](https://github.com/colebemis)! - Add `skipImportCheck` option. By default, the `no-deprecated-colors` rule will only check for deprecated colors used in functions and components that are imported from `@primer/components`. You can disable this behavior by setting `skipImportCheck` to `true`. This is useful for linting custom components that pass color-related props down to Primer React components.
8+
9+
* [#6](https://github.com/primer/eslint-plugin-primer-react/pull/6) [`dd14594`](https://github.com/primer/eslint-plugin-primer-react/commit/dd14594b05e4d800baa76771f5b911d77352a983) Thanks [@colebemis](https://github.com/colebemis)! - The `no-deprecated-colors` rule can now find deprecated colors in the following cases:
10+
11+
- Nested `sx` properties:
12+
13+
```jsx
14+
<Box sx={{'&:hover': {bg: 'bg.primary'}}}>
15+
```
616

17+
- Functions in `sx` prop:
18+
19+
```jsx
20+
<Box sx={{boxShadow: theme => `0 1px 2px ${theme.colors.text.primary}`}}>
21+
```
22+
23+
## 0.4.1
24+
25+
### Patch Changes
726

827
- [#3](https://github.com/primer/eslint-plugin-primer-react/pull/3) [`8e9144f`](https://github.com/primer/eslint-plugin-primer-react/commit/8e9144fd7a9ff1bb99878dca61621351026ddc82) Thanks [@colebemis](https://github.com/colebemis)! - Add type metadata to no-deprecated-colors rule

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-primer-react",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "ESLint rules for Primer React",
55
"main": "src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)