eslint-plugin-primer-react 5.4.0 → 5.5.0-rc.40574df

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # eslint-plugin-primer-react
2
2
 
3
+ ## 5.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
3
9
  ## 5.4.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,25 @@
1
+ # Use Deprecated from Deprecated
2
+
3
+ ## Rule Details
4
+
5
+ This rule enforces the usage of deprecated imports from `@primer/react/deprecated`.
6
+
7
+ 👎 Examples of **incorrect** code for this rule
8
+
9
+ ```jsx
10
+ import {Dialog} from '@primer/react'
11
+
12
+ function ExampleComponent() {
13
+ return <Dialog>{/* ... */}</Dialog>
14
+ }
15
+ ```
16
+
17
+ 👍 Examples of **correct** code for this rule:
18
+
19
+ ```jsx
20
+ import {Dialog} from '@primer/react/deprecated'
21
+
22
+ function ExampleComponent() {
23
+ return <Dialog>{/* ... */}</Dialog>
24
+ }
25
+ ```