Skip to content

Commit

Permalink
Merge pull request #9 from primer/changeset-release/main
Browse files Browse the repository at this point in the history
Release Tracking
  • Loading branch information
colebemis authored Sep 20, 2021
2 parents 6bbafca + ddd5385 commit 30d0a35
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
5 changes: 0 additions & 5 deletions .changeset/curly-carrots-tickle.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/weak-tips-brush.md

This file was deleted.

21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# eslint-plugin-primer-react

## 0.4.1
## 0.4.2

### Patch Changes

- [#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.

* [#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:

- 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.4.1

### Patch Changes

- [#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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-primer-react",
"version": "0.4.1",
"version": "0.4.2",
"description": "ESLint rules for Primer React",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit 30d0a35

Please sign in to comment.