# eslint-plugin-primer-react

## 9.4.0

### Minor Changes

- [#705](https://github.com/primer/eslint-plugin-primer-react/pull/705) [`9b282ba`](https://github.com/primer/eslint-plugin-primer-react/commit/9b282babfb4436dee689eaeeec568b1f6b3ce8b4) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - Expand `no-deprecated-props` to cover known deprecated Primer props, including compound components and aliased imports.

### Patch Changes

- [#695](https://github.com/primer/eslint-plugin-primer-react/pull/695) [`2d9480f`](https://github.com/primer/eslint-plugin-primer-react/commit/2d9480f91ef77955cee32ec4f26f76838a138fb3) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update the launch-editor development dependency to 2.14.2.

## 9.3.1

### Patch Changes

- [#651](https://github.com/primer/eslint-plugin-primer-react/pull/651) [`1c62769`](https://github.com/primer/eslint-plugin-primer-react/commit/1c62769aa8920ef7c973ba43c3f22b79497b545a) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update js-yaml to address a security vulnerability.

## 9.3.0

### Minor Changes

- [#630](https://github.com/primer/eslint-plugin-primer-react/pull/630) [`7e5fc05`](https://github.com/primer/eslint-plugin-primer-react/commit/7e5fc05e6b227a29bd757779688e325c6f61ccbc) Thanks [@llastflowers](https://github.com/llastflowers)! - Add lint rule to discourage Flash usage

## 9.2.0

### Minor Changes

- [#599](https://github.com/primer/eslint-plugin-primer-react/pull/599) [`589e822`](https://github.com/primer/eslint-plugin-primer-react/commit/589e822a8d21c2d4f4d411d23c761dfe0e25dee7) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Upgrade ESLint to v10.7.0 and related ESLint dependencies to compatible versions

## 9.1.0

### Minor Changes

- [#592](https://github.com/primer/eslint-plugin-primer-react/pull/592) [`0988020`](https://github.com/primer/eslint-plugin-primer-react/commit/0988020be213c0158f607b250a4faef6e1e41b99) Thanks [@alaingoga](https://github.com/alaingoga)! - Remove plugin:github/react from src/configs/recommended.js to avoid silently depending on GitHub’s React config behavior.
  Expand this package’s eslint peer dependency range to include ESLint ^10.0.0.
  Update the lockfile to reflect the peer dependency change.

## 9.0.0

### Major Changes

- [#577](https://github.com/primer/eslint-plugin-primer-react/pull/577) [`f0c6656`](https://github.com/primer/eslint-plugin-primer-react/commit/f0c66568b76a3acc9c03c29ce1530026b6878903) Thanks [@francinelucca](https://github.com/francinelucca)! - - BREAKING CHANGE: Deleted the `no-system-props` rule to eliminate checks for styled-system props in components.
  - BREAKING CHANGE: Removed the `no-unnecessary-components` rule that enforced the use of plain HTML elements over `Box` and `Text` when not using `sx` for styling.
  - BREAKING CHANGE: Eliminated the `use-styled-react-import` rule that enforced importing components from `@primer/styled-react` when using the `sx` prop.
  - Removed styled-system, @types/styled-system dependencies

## 8.6.1

### Patch Changes

- [#548](https://github.com/primer/eslint-plugin-primer-react/pull/548) [`7f5af96`](https://github.com/primer/eslint-plugin-primer-react/commit/7f5af9610d0dde4c0e9941dc485ef1487c8d48ac) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Fix use-styled-react-import fixer stripping type keyword from import specifiers

- [#565](https://github.com/primer/eslint-plugin-primer-react/pull/565) [`93f3788`](https://github.com/primer/eslint-plugin-primer-react/commit/93f3788bcc042ec35f4c62eb050431d1f4f439f5) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Add SplitPageLayout.Sidebar to no-system-props exclusions for padding, position, and width.

## 8.6.0

### Minor Changes

- [#376](https://github.com/primer/eslint-plugin-primer-react/pull/376) [`4f0e5b5`](https://github.com/primer/eslint-plugin-primer-react/commit/4f0e5b51fef890703ed8685ec74b30aa9e7b8547) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add ESLint rule to replace deprecated Octicon component with specific icons and remove unused imports

## 8.5.2

### Patch Changes

- [#488](https://github.com/primer/eslint-plugin-primer-react/pull/488) [`e27c83b`](https://github.com/primer/eslint-plugin-primer-react/commit/e27c83b392a2c947b07cd40edce5c8fc587e36dd) Thanks [@siddharthkp](https://github.com/siddharthkp)! - utils/casing-matches: Prevent ReDoS vulnerability

## 8.5.1

### Patch Changes

- [#474](https://github.com/primer/eslint-plugin-primer-react/pull/474) [`1e0f943`](https://github.com/primer/eslint-plugin-primer-react/commit/1e0f943a264aaac2581b95916bd0cb8a66a41a17) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Fix `no-unnecessary-components` rule to support `@primer/styled-react` imports.

- [#461](https://github.com/primer/eslint-plugin-primer-react/pull/461) [`75ae0a5`](https://github.com/primer/eslint-plugin-primer-react/commit/75ae0a5cb1d4587b5481c8a459033206aae8e5c3) Thanks [@joshfarrant](https://github.com/joshfarrant)! - Export `enforce-button-for-link-with-no-href` rule, which flags `Link` components which don't have a `href`.

## 8.5.0

### Minor Changes

- [#443](https://github.com/primer/eslint-plugin-primer-react/pull/443) [`8865e3a`](https://github.com/primer/eslint-plugin-primer-react/commit/8865e3af43dfd302ed345c5b9243c32abe7cebad) Thanks [@hectahertz](https://github.com/hectahertz)! - Add no-use-responsive-value

### Patch Changes

- [#435](https://github.com/primer/eslint-plugin-primer-react/pull/435) [`aa12209`](https://github.com/primer/eslint-plugin-primer-react/commit/aa12209a5ede77f01217ff044192c2b4b15ae2ab) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds `width` and `height` to `no-system-props` for `ConfirmationDialog`

- [#454](https://github.com/primer/eslint-plugin-primer-react/pull/454) [`917f344`](https://github.com/primer/eslint-plugin-primer-react/commit/917f344f61beeb8bd5817e89456a135769319003) Thanks [@francinelucca](https://github.com/francinelucca)! - no-system-props: allow 'overflow' prop in Breadcrumbs

## 8.4.0

### Minor Changes

- [#437](https://github.com/primer/eslint-plugin-primer-react/pull/437) [`9270d40`](https://github.com/primer/eslint-plugin-primer-react/commit/9270d40d73bd046e21156b68ef6bd13a20008585) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add spread-props-first rule to ensure spread props come before other props

## 8.3.0

### Minor Changes

- [#426](https://github.com/primer/eslint-plugin-primer-react/pull/426) [`b83f467`](https://github.com/primer/eslint-plugin-primer-react/commit/b83f46761945d73dfea6c1381ff776e9f50e0bd2) Thanks [@siddharthkp](https://github.com/siddharthkp)! - use-styled-react-import: Add ThemeProvider, BaseStyles and useTheme. Allow theme components to be imported from styled-react without sx

## 8.2.1

### Patch Changes

- [#410](https://github.com/primer/eslint-plugin-primer-react/pull/410) [`f3e47b1`](https://github.com/primer/eslint-plugin-primer-react/commit/f3e47b1a75ad27aceaed89d50175cc59754c8b9d) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix for deprecated and experimental import paths

## 8.2.0

### Minor Changes

- [#407](https://github.com/primer/eslint-plugin-primer-react/pull/407) [`2f25480`](https://github.com/primer/eslint-plugin-primer-react/commit/2f25480c3341c1d1afb6fc040c5c5deee416d71c) Thanks [@jonrohan](https://github.com/jonrohan)! - Make `use-styled-react-import` rule configurable

### Patch Changes

- [#406](https://github.com/primer/eslint-plugin-primer-react/pull/406) [`d72e8c4`](https://github.com/primer/eslint-plugin-primer-react/commit/d72e8c4c172d1c37da201a20cde0b7b2bd9ab283) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixes for `use-styled-react-import` rule for compound components.

## 8.1.0

### Minor Changes

- [#382](https://github.com/primer/eslint-plugin-primer-react/pull/382) [`93e4b76`](https://github.com/primer/eslint-plugin-primer-react/commit/93e4b76269bf816bfc24991180f73ef22266a6f5) Thanks [@jonrohan](https://github.com/jonrohan)! - Add rule `use-styled-react-import` to enforce importing components with sx prop from @primer/styled-react

### Patch Changes

- [#389](https://github.com/primer/eslint-plugin-primer-react/pull/389) [`747fc82`](https://github.com/primer/eslint-plugin-primer-react/commit/747fc82dc9fc584005d98b36f8417985469a083a) Thanks [@llastflowers](https://github.com/llastflowers)! - Add exception for height and width for SkeletonBox in no-system-props rule

## 8.0.0

### Major Changes

- [#381](https://github.com/primer/eslint-plugin-primer-react/pull/381) [`52f3be6`](https://github.com/primer/eslint-plugin-primer-react/commit/52f3be6881a522b0c9b261fe5acbe0c84a7deb5a) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Upgrade to ESLint v9 support with eslint-plugin-github v6

- [#380](https://github.com/primer/eslint-plugin-primer-react/pull/380) [`d42d5c0`](https://github.com/primer/eslint-plugin-primer-react/commit/d42d5c03a0e7df44efeed84baff2eca95af05113) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Update repository to Node.js v20

### Minor Changes

- [#366](https://github.com/primer/eslint-plugin-primer-react/pull/366) [`c7bf278`](https://github.com/primer/eslint-plugin-primer-react/commit/c7bf278d7e7d6b389f325bfb9f57dca2114b3506) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Add `a11y-no-duplicate-form-labels` rule to prevent duplicate labels on TextInput components.

### Patch Changes

- [#364](https://github.com/primer/eslint-plugin-primer-react/pull/364) [`ec701d2`](https://github.com/primer/eslint-plugin-primer-react/commit/ec701d29d35a0a3f09eea2f66dbe28b4be81957f) Thanks [@pksjce](https://github.com/pksjce)! - Add rule for Link to not be allowed without href

## 7.0.2

### Patch Changes

- [#359](https://github.com/primer/eslint-plugin-primer-react/pull/359) [`1480eba`](https://github.com/primer/eslint-plugin-primer-react/commit/1480eba98bd8023c16d55aad5777a52c9da3079d) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Fixes error when `imported` does not exist in specifier object

## 7.0.1

### Patch Changes

- [#331](https://github.com/primer/eslint-plugin-primer-react/pull/331) [`82a7d03`](https://github.com/primer/eslint-plugin-primer-react/commit/82a7d037b92c02126c6bf0daba060b233ef94262) Thanks [@francinelucca](https://github.com/francinelucca)! - Update message for no-deprecated-experimental-components rule

- [#333](https://github.com/primer/eslint-plugin-primer-react/pull/333) [`c709c98`](https://github.com/primer/eslint-plugin-primer-react/commit/c709c98a84dc1ce978575136292063f3821b47cc) Thanks [@francinelucca](https://github.com/francinelucca)! - Update message for no-deprecated-experimental-components rule

- [#331](https://github.com/primer/eslint-plugin-primer-react/pull/331) [`82a7d03`](https://github.com/primer/eslint-plugin-primer-react/commit/82a7d037b92c02126c6bf0daba060b233ef94262) Thanks [@francinelucca](https://github.com/francinelucca)! - Removes primer-react/enforce-css-module-identifier-casing, primer-react/enforce-css-module-default-import from recommended set of rules.

## 7.0.0

### Major Changes

- [#270](https://github.com/primer/eslint-plugin-primer-react/pull/270) [`17814a2`](https://github.com/primer/eslint-plugin-primer-react/commit/17814a2d77d752b6675e51124fe3c18671837a10) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Update a11y-use-next-tooltip to be a11y-use-accessible-tooltip and make the changes accordingly

- [#316](https://github.com/primer/eslint-plugin-primer-react/pull/316) [`40016c8`](https://github.com/primer/eslint-plugin-primer-react/commit/40016c8db99b4045ed7474cead0b48eed05f5f64) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Add `a11y-no-title-usage` that warns against using `title` in some components

### Minor Changes

- [#266](https://github.com/primer/eslint-plugin-primer-react/pull/266) [`90134bc`](https://github.com/primer/eslint-plugin-primer-react/commit/90134bcee073c424e81c53e69632e1518798af93) Thanks [@keithamus](https://github.com/keithamus)! - Add enforce-css-module-default-import rule

- [#258](https://github.com/primer/eslint-plugin-primer-react/pull/258) [`83f29f3`](https://github.com/primer/eslint-plugin-primer-react/commit/83f29f339999b9c21d95167bcc2680c1797cbab6) Thanks [@keithamus](https://github.com/keithamus)! - Add enforce-css-module-identifier-casing rule

- [#325](https://github.com/primer/eslint-plugin-primer-react/pull/325) [`f689fcc`](https://github.com/primer/eslint-plugin-primer-react/commit/f689fcc0ca3e5a2c4b76aa04ebb620c7c5786fdf) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Add `no-deprecated-experimental-components` rule

### Patch Changes

- [#330](https://github.com/primer/eslint-plugin-primer-react/pull/330) [`1b70cf1`](https://github.com/primer/eslint-plugin-primer-react/commit/1b70cf108948d2c6818bbaddd69e5dfad5060e53) Thanks [@francinelucca](https://github.com/francinelucca)! - Add null check to enforce-css-module-identifier-casing.js. Corrects complex instances where ref.resolve is not available.

- [#314](https://github.com/primer/eslint-plugin-primer-react/pull/314) [`63ef9fd`](https://github.com/primer/eslint-plugin-primer-react/commit/63ef9fdf02a9c4b80528644a96fd81e366bce187) Thanks [@khiga8](https://github.com/khiga8)! - fix: Link to should be allowed to have tooltip

## 6.1.6

### Patch Changes

- [#255](https://github.com/primer/eslint-plugin-primer-react/pull/255) [`fd2cb55`](https://github.com/primer/eslint-plugin-primer-react/commit/fd2cb551cdf219c2ac690ce610fbbab102cc5e48) Thanks [@joshblack](https://github.com/joshblack)! - Update no-wildcard-imports rule to no longer migrate the TokenSizeKeys import

## 6.1.5

### Patch Changes

- [#253](https://github.com/primer/eslint-plugin-primer-react/pull/253) [`456bf4d`](https://github.com/primer/eslint-plugin-primer-react/commit/456bf4d3c1f5e5dde70030f24c1c6b821e685cc5) Thanks [@joshblack](https://github.com/joshblack)! - Update no-wildcard-imports rule to move ButtonBase to `@primer/react/experimental`

## 6.1.4

### Patch Changes

- [#249](https://github.com/primer/eslint-plugin-primer-react/pull/249) [`f8c8a9d`](https://github.com/primer/eslint-plugin-primer-react/commit/f8c8a9df1b49cb7f487eb0dba3e7f46ac7f7e23b) Thanks [@joshblack](https://github.com/joshblack)! - Update no-wildcard-imports rule to not create separate imports for type only imports. This prevents an issue downstream with autofixers

## 6.1.3

### Patch Changes

- [#242](https://github.com/primer/eslint-plugin-primer-react/pull/242) [`e139c02`](https://github.com/primer/eslint-plugin-primer-react/commit/e139c02ae0d0d656d2276320ae0e4756b3a1debd) Thanks [@joshblack](https://github.com/joshblack)! - Update no-wildcard-imports rule to work for imports that specify value and type imports

## 6.1.2

### Patch Changes

- [#239](https://github.com/primer/eslint-plugin-primer-react/pull/239) [`3b2e023`](https://github.com/primer/eslint-plugin-primer-react/commit/3b2e023ce2215feff50a1b7f263d23db99f79ec2) Thanks [@joshblack](https://github.com/joshblack)! - Update use-deprecated-from-deprecated rule to include prop types

- [#234](https://github.com/primer/eslint-plugin-primer-react/pull/234) [`9a58afb`](https://github.com/primer/eslint-plugin-primer-react/commit/9a58afb35f848bd8fcf11901653615f84c09f8f8) Thanks [@joshblack](https://github.com/joshblack)! - Update no-wildcard-imports rule to use local name for updated imports

## 6.1.1

### Patch Changes

- [#237](https://github.com/primer/eslint-plugin-primer-react/pull/237) [`f072227`](https://github.com/primer/eslint-plugin-primer-react/commit/f072227b4e698660fda3c2416ed8a629e8e48a79) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - no-system-props: Add `bg` prop to `ProgressBar.Item`

## 6.1.0

### Minor Changes

- [#225](https://github.com/primer/eslint-plugin-primer-react/pull/225) [`b4698df`](https://github.com/primer/eslint-plugin-primer-react/commit/b4698dfd4686067df6cf73788531fc3f835f7747) Thanks [@joshblack](https://github.com/joshblack)! - Add eslint rule for discouraging use of wildcard imports from @primer/react

## 6.0.2

### Patch Changes

- [#218](https://github.com/primer/eslint-plugin-primer-react/pull/218) [`e55d3d3`](https://github.com/primer/eslint-plugin-primer-react/commit/e55d3d3d271058d76da94cc3152987ea6541e2a6) Thanks [@iansan5653](https://github.com/iansan5653)! - Fix incorrect rule violations on components imported from @primer/react-brand

## 6.0.1

### Patch Changes

- [#216](https://github.com/primer/eslint-plugin-primer-react/pull/216) [`55c5256`](https://github.com/primer/eslint-plugin-primer-react/commit/55c52562bc66fd661a5f0ef8218b90bf900411a4) Thanks [@iansan5653](https://github.com/iansan5653)! - Fix invalid rule names

## 6.0.0

### Major Changes

- [#207](https://github.com/primer/eslint-plugin-primer-react/pull/207) [`baff792`](https://github.com/primer/eslint-plugin-primer-react/commit/baff792c0aa01a29374e44e8aa770dbe2cb889a1) Thanks [@iansan5653](https://github.com/iansan5653)! - [Breaking] Adds `no-unnecessary-components` lint rule and enables it by default. This may raise new (typically autofixable) lint errors in existing codebases.

- [#211](https://github.com/primer/eslint-plugin-primer-react/pull/211) [`3f92cd4`](https://github.com/primer/eslint-plugin-primer-react/commit/3f92cd4b689e437bb9efe6a9fe873501ddf76bf2) Thanks [@camchenry](https://github.com/camchenry)! - [Breaking] Adds `prefer-action-list-item-onselect` lint rule and enables it by default. This may raise new auto-fixable lint errors or type-checking errors in existing codebases.

### Minor Changes

- [#204](https://github.com/primer/eslint-plugin-primer-react/pull/204) [`e2cab87`](https://github.com/primer/eslint-plugin-primer-react/commit/e2cab872c265f4211750436fad32fe5fd8927c5c) Thanks [@joshblack](https://github.com/joshblack)! - Add use-deprecated-from-deprecated rule

### Patch Changes

- [#212](https://github.com/primer/eslint-plugin-primer-react/pull/212) [`78d4600`](https://github.com/primer/eslint-plugin-primer-react/commit/78d460024ae4c10b6a754b615c6d594e4dfb646e) Thanks [@langermank](https://github.com/langermank)! - no-system-props: Add `padding` and `gap` as exceptions for `Stack`

## 5.4.0

### Minor Changes

- [#103](https://github.com/primer/eslint-plugin-primer-react/pull/103) [`8617a66`](https://github.com/primer/eslint-plugin-primer-react/commit/8617a66b2afe7e4e7a8608dbf5744999fffd9140) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Add a11y-use-next-tooltip rule that warns against using Tooltip v1 (Not the accessible one)

### Patch Changes

- [#202](https://github.com/primer/eslint-plugin-primer-react/pull/202) [`0293fdc`](https://github.com/primer/eslint-plugin-primer-react/commit/0293fdc8da74c2296a22be93eceac7ff14772b1a) Thanks [@keithamus](https://github.com/keithamus)! - Allow ActionMenu.Button alignContent prop

## 5.3.0

### Minor Changes

- [#185](https://github.com/primer/eslint-plugin-primer-react/pull/185) [`fea642d`](https://github.com/primer/eslint-plugin-primer-react/commit/fea642d79982e36729262ec55d6e291780ca6160) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Add a rule that warns against removing `unsafeDisableTooltip` prop

## 5.2.1

### Patch Changes

- [#195](https://github.com/primer/eslint-plugin-primer-react/pull/195) [`ccc2e99`](https://github.com/primer/eslint-plugin-primer-react/commit/ccc2e995a3f46bb4842468188b91c0bd641da390) Thanks [@khiga8](https://github.com/khiga8)! - Clean up docs for link lint rule

- [#193](https://github.com/primer/eslint-plugin-primer-react/pull/193) [`5fc19f6`](https://github.com/primer/eslint-plugin-primer-react/commit/5fc19f63a4916add7b3c335ac661119c50af17af) Thanks [@khiga8](https://github.com/khiga8)! - Update link lint rule to skip Link with className

## 5.2.0

### Minor Changes

- [#190](https://github.com/primer/eslint-plugin-primer-react/pull/190) [`a02a188`](https://github.com/primer/eslint-plugin-primer-react/commit/a02a1884c1334e1cdb43d7c5cafacdfd4ec92e33) Thanks [@khiga8](https://github.com/khiga8)! - \* bump eslint-plugin-github to v5.0.0

### Patch Changes

- [#183](https://github.com/primer/eslint-plugin-primer-react/pull/183) [`7bd36d2`](https://github.com/primer/eslint-plugin-primer-react/commit/7bd36d2a9a594a49ab8317a2986eda7c948b16b6) Thanks [@khiga8](https://github.com/khiga8)! - New rule to flag `Link` in text block missing the `inline` prop

## 5.1.0

### Minor Changes

- [#178](https://github.com/primer/eslint-plugin-primer-react/pull/178) [`49150da`](https://github.com/primer/eslint-plugin-primer-react/commit/49150da106f0ff9a52faac8d559b78449c672391) Thanks [@khiga8](https://github.com/khiga8)! - Map `Box` to `div` and pass it into `eslint-plugin-github`.

## 5.0.0

### Major Changes

- [#174](https://github.com/primer/eslint-plugin-primer-react/pull/174) [`d9832b8`](https://github.com/primer/eslint-plugin-primer-react/commit/d9832b850cbcf808ddcdfd3efbbab7d2bf913ccd) Thanks [@langermank](https://github.com/langermank)! - - Remove `no-deprecated-colors` plugin
  - Remove dependency on `primer/primitives`

- [#172](https://github.com/primer/eslint-plugin-primer-react/pull/172) [`8e24d66`](https://github.com/primer/eslint-plugin-primer-react/commit/8e24d660065b3c690a14d826580c793d7b305068) Thanks [@langermank](https://github.com/langermank)! - [Breaking] Remove `new-color-css-vars-have-fallback`

## 4.2.0

### Minor Changes

- [#156](https://github.com/primer/eslint-plugin-primer-react/pull/156) [`15cfbb4`](https://github.com/primer/eslint-plugin-primer-react/commit/15cfbb4a261c44418404249cc33e279bce25b2b7) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Add no-deprecated-props rule

### Patch Changes

- [#166](https://github.com/primer/eslint-plugin-primer-react/pull/166) [`4c3d9b4`](https://github.com/primer/eslint-plugin-primer-react/commit/4c3d9b4e761733ac52f4d624a94996a4379c37ca) Thanks [@chadfawcett](https://github.com/chadfawcett)! - Move eslint-plugin-github to dependencies

- [#152](https://github.com/primer/eslint-plugin-primer-react/pull/152) [`7baeb96`](https://github.com/primer/eslint-plugin-primer-react/commit/7baeb9684cc5f84847f004fee282a3362517d7d0) Thanks [@siddharthkp](https://github.com/siddharthkp)! - no-system-props: Add option to ignore specific component names

## 4.1.2

### Patch Changes

- [#148](https://github.com/primer/eslint-plugin-primer-react/pull/148) [`523e169`](https://github.com/primer/eslint-plugin-primer-react/commit/523e169a3c6c801750d451e875c83f52e383c772) Thanks [@siddharthkp](https://github.com/siddharthkp)! - no-system-props: skip html elements

- [#149](https://github.com/primer/eslint-plugin-primer-react/pull/149) [`ca14bb6`](https://github.com/primer/eslint-plugin-primer-react/commit/ca14bb695ad296903bfe7598b4eb81291796245a) Thanks [@siddharthkp](https://github.com/siddharthkp)! - no-system-props: allow maxWidth prop for Truncate

## 4.1.1

### Patch Changes

- [#145](https://github.com/primer/eslint-plugin-primer-react/pull/145) [`0369cb8`](https://github.com/primer/eslint-plugin-primer-react/commit/0369cb857dd49945ac7929444ffacb2ecc02a2ed) Thanks [@siddharthkp](https://github.com/siddharthkp)! - no-system-props: Add `position` as allowed prop for `Dialog`

## 4.1.0

### Minor Changes

- [#129](https://github.com/primer/eslint-plugin-primer-react/pull/129) [`eb04624`](https://github.com/primer/eslint-plugin-primer-react/commit/eb046249daaa9ab72d9ca4bbfba30fd494a79e23) Thanks [@joshblack](https://github.com/joshblack)! - Add no-deprecated-entrypoints rule to lint against deprecated import usage in @primer/react

### Patch Changes

- [#133](https://github.com/primer/eslint-plugin-primer-react/pull/133) [`5cc9630`](https://github.com/primer/eslint-plugin-primer-react/commit/5cc96305bfa884cf9f447d1e033bc2f5c9e110b7) Thanks [@siddharthkp](https://github.com/siddharthkp)! - no-system-props: Add alignContent to allowed props for Button

## 4.0.4

### Patch Changes

- [#122](https://github.com/primer/eslint-plugin-primer-react/pull/122) [`3bc226a`](https://github.com/primer/eslint-plugin-primer-react/commit/3bc226ad0786f9a7a21ce92a63cbba17b8a5b763) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - New rule: new-color-css-vars-have-fallback: checks that if a new color var is used, it has a fallback value

## 4.0.3

### Patch Changes

- [#81](https://github.com/primer/eslint-plugin-primer-react/pull/81) [`821ef4d`](https://github.com/primer/eslint-plugin-primer-react/commit/821ef4d2a1b87f2418cb9c48bed37b793361b282) Thanks [@langermank](https://github.com/langermank)! - New rule: `new-color-css-vars` to find/replace legacy CSS color vars in sx prop

## 4.0.2

### Patch Changes

- [#76](https://github.com/primer/eslint-plugin-primer-react/pull/76) [`1750256`](https://github.com/primer/eslint-plugin-primer-react/commit/17502566745fcc7ebcebef730c1c7c60be276f06) Thanks [@joshblack](https://github.com/joshblack)! - Update the no-system-props rule to exclude the `border` prop for the `Blankslate` component from `@primer/react`.

## 4.0.1

### Patch Changes

- [#74](https://github.com/primer/eslint-plugin-primer-react/pull/74) [`c07df5c`](https://github.com/primer/eslint-plugin-primer-react/commit/c07df5c067e2a980bcd373d1c992a2123ef70c5c) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Adds support for `MarkdownEditor.Footer` in `direct-slot-children` rule

## 4.0.0

### Major Changes

- [#51](https://github.com/primer/eslint-plugin-primer-react/pull/51) [`a65aa32`](https://github.com/primer/eslint-plugin-primer-react/commit/a65aa32c612c7fe952ec47bb3d926cf8adae9fab) Thanks [@broccolinisoup](https://github.com/broccolinisoup)! - Add `a11y-tooltip-interactive-trigger`

* [#66](https://github.com/primer/eslint-plugin-primer-react/pull/66) [`d1df609`](https://github.com/primer/eslint-plugin-primer-react/commit/d1df609b260505ee9dea1740bc96a3187355d727) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Add `a11y-explicit-heading` rule

### Minor Changes

- [#67](https://github.com/primer/eslint-plugin-primer-react/pull/67) [`4dfdb47`](https://github.com/primer/eslint-plugin-primer-react/commit/4dfdb47b40e7f187573b8203830541b86cc7a953) Thanks [@TylerJDev](https://github.com/TylerJDev)! - \* Updates component mapping, adds `components.js`
  - Bumps `eslint-plugin-github` and `eslint-plugin-jsx-a11y`
  - Fixes bug in `a11y-explicit-heading` when using spread props, or variable for `as`

### Patch Changes

- [#72](https://github.com/primer/eslint-plugin-primer-react/pull/72) [`522b9cc`](https://github.com/primer/eslint-plugin-primer-react/commit/522b9ccbcfb26d18f2ea8b2514a6a7975480aaa7) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Removes `Link`, `Spinner` and `TabNav.Link` from component mapping

* [#73](https://github.com/primer/eslint-plugin-primer-react/pull/73) [`974d9e8`](https://github.com/primer/eslint-plugin-primer-react/commit/974d9e85c7460a05eb0345086b340b650700d24d) Thanks [@TylerJDev](https://github.com/TylerJDev)! - \* Fixes `nonInteractiveLink` rule for links that pass values through JSX rather than a string
  - Adds optional chaining to `getJSXOpeningElementAttribute` to avoid error when no `name` is present

## 3.0.0

### Major Changes

- [#49](https://github.com/primer/eslint-plugin-primer-react/pull/49) [`ad22b85`](https://github.com/primer/eslint-plugin-primer-react/commit/ad22b85367ec3143dfaf73e4057cbe41410b5dcb) Thanks [@colebemis](https://github.com/colebemis)! - `direct-slot-children`: Add checks for `MarkdownEditor` slot children

## 2.0.3

### Patch Changes

- [#47](https://github.com/primer/eslint-plugin-primer-react/pull/47) [`9964e4e`](https://github.com/primer/eslint-plugin-primer-react/commit/9964e4e5415c3bbeab78763b7b4d4e29a0bdbb95) Thanks [@colebemis](https://github.com/colebemis)! - - Update the no-system-props rule to properly check subcomponents for system props
  - Adds valid sucomponent props to the allowlist

## 2.0.2

### Patch Changes

- [#45](https://github.com/primer/eslint-plugin-primer-react/pull/45) [`a39e34d`](https://github.com/primer/eslint-plugin-primer-react/commit/a39e34d26e72cc4b64a35627a6c4f700fae93fe2) Thanks [@colebemis](https://github.com/colebemis)! - More `direct-slot-children` fixes:
  - Fix bug related self-closing JSX tags
  - Allow slot children to accept multiple parents (ex: `ActionList.Item` or `ActionList.LinkItem`)
  - Add `SplitPageLayout` and `NavList` to the slot map
  - Ignore `MarkdownEditor` because it's still a draft

## 2.0.1

### Patch Changes

- [#43](https://github.com/primer/eslint-plugin-primer-react/pull/43) [`943e49a`](https://github.com/primer/eslint-plugin-primer-react/commit/943e49a62ada544b73320791858398705ed8208e) Thanks [@colebemis](https://github.com/colebemis)! - `direct-slot-children` fixes

## 2.0.0

### Major Changes

- [#39](https://github.com/primer/eslint-plugin-primer-react/pull/39) [`96a675d`](https://github.com/primer/eslint-plugin-primer-react/commit/96a675d8865450d3be556135947a29181a56551c) Thanks [@colebemis](https://github.com/colebemis)! - Add `direct-slot-children` rule

### Minor Changes

- [#21](https://github.com/primer/eslint-plugin-primer-react/pull/21) [`5f68eb7`](https://github.com/primer/eslint-plugin-primer-react/commit/5f68eb7e222e2a41c527b5036b1308ff293e7a0d) Thanks [@SferaDev](https://github.com/SferaDev)! - `no-system-props`: Add `skipImportCheck` option

## 1.0.1

### Patch Changes

- [#36](https://github.com/primer/eslint-plugin-primer-react/pull/36) [`f03cd7d`](https://github.com/primer/eslint-plugin-primer-react/commit/f03cd7defd45e1587dbbfac55a0290172c3b5af3) Thanks [@khiga8](https://github.com/khiga8)! - Define some component mappings for jsx-a11y

## 1.0.0

### Major Changes

- [#34](https://github.com/primer/eslint-plugin-primer-react/pull/34) [`efd4f67`](https://github.com/primer/eslint-plugin-primer-react/commit/efd4f675d8c24b74e7fd0bcfb4524b42ed3378ea) Thanks [@khiga8](https://github.com/khiga8)! - Provide component mapping for `github/react` preset and add dependencies to `eslint-plugin-github` and `eslint-plugin-jsx-a11y`.

  `eslint` peer dependency is now `^8.0.1`.

## 0.7.4

### Patch Changes

- [#31](https://github.com/primer/eslint-plugin-primer-react/pull/31) [`a64413a`](https://github.com/primer/eslint-plugin-primer-react/commit/a64413aef359e8f16ca088f1975c5e2411c5ffb3) Thanks [@colebemis](https://github.com/colebemis)! - `no-system-props`: Always ignore `size` prop

## 0.7.3

### Patch Changes

- [#27](https://github.com/primer/eslint-plugin-primer-react/pull/27) [`19cbc53`](https://github.com/primer/eslint-plugin-primer-react/commit/19cbc530471f11c4c053ce830e23cb72f36b2c16) Thanks [@colebemis](https://github.com/colebemis)! - `no-system-props`: Ignore `bg` prop on `PointerBox` component

## 0.7.2

### Patch Changes

- [#24](https://github.com/primer/eslint-plugin-primer-react/pull/24) [`e5565ae`](https://github.com/primer/eslint-plugin-primer-react/commit/e5565ae890f55927c0b1dd96d8943efc1e0bbbfa) Thanks [@colebemis](https://github.com/colebemis)! - Replace references to `@primer/components` with `@primer/react`

## 0.7.1

### Patch Changes

- [#22](https://github.com/primer/eslint-plugin-primer-react/pull/22) [`87d0fd6`](https://github.com/primer/eslint-plugin-primer-react/commit/87d0fd6af8a18a2a570c3770571b16fe3b5c3a30) Thanks [@dmarcey](https://github.com/dmarcey)! - Ignore non-literal, non-string arguments to `themeGet` in `no-deprecated-colors` rule

## 0.7.0

### Minor Changes

- [#18](https://github.com/primer/eslint-plugin-primer-react/pull/18) [`f0c7a3d`](https://github.com/primer/eslint-plugin-primer-react/commit/f0c7a3d1ab1d60df2c95b86c80d930d6ef15bde1) Thanks [@jfuchs](https://github.com/jfuchs)! - Introduced an option on no-system-props to include utility components (includeUtilityComponents).

* [#20](https://github.com/primer/eslint-plugin-primer-react/pull/20) [`b0824f6`](https://github.com/primer/eslint-plugin-primer-react/commit/b0824f6c7c69cdf7d70d831626be37f606d70f73) Thanks [@jfuchs](https://github.com/jfuchs)! - Updates no-system-props rule to always exclude the 'variant' prop no matter which component.

## 0.6.1

### Patch Changes

- [#15](https://github.com/primer/eslint-plugin-primer-react/pull/15) [`9b96147`](https://github.com/primer/eslint-plugin-primer-react/commit/9b961478993972a584428d13c5bb792635c2c622) Thanks [@colebemis](https://github.com/colebemis)! - The `no-deprecated-colors` now warns about deprecated _and_ removed color variables

## 0.6.0

### Minor Changes

- [#12](https://github.com/primer/eslint-plugin-primer-react/pull/12) [`df26962`](https://github.com/primer/eslint-plugin-primer-react/commit/df269623f3430066ea6440042da13932e3e35bc4) Thanks [@jfuchs](https://github.com/jfuchs)! - Added a no-system-props rule

## 0.5.0

### Minor Changes

- [#10](https://github.com/primer/eslint-plugin-primer-react/pull/10) [`31d069b`](https://github.com/primer/eslint-plugin-primer-react/commit/31d069b0d210c53862de30757ecdfd2222e098b5) Thanks [@colebemis](https://github.com/colebemis)! - Add a `checkAllStrings` option to the `no-deprecated-colors` rule.

  If `checkAllStrings` is set to `true`, the `no-deprecated-colors` rule will check for deprecated colors in all strings. This is useful for catching uses of deprecated colors outside system props and the `sx` prop.

  ```js
  /* eslint primer-react/no-deprecated-colors: ["warn", {"checkAllStrings": true}] */
  import {Box} from '@primer/react'

  function ExampleComponent() {
    const styles = {
      // Enabling `checkAllStrings` will find deprecated colors used like this:
      color: 'text.primary',
    }
    return <Box sx={styles}>Hello</Box>
  }
  ```

## 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/react`. 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
