Commit 54b1742
committed
refactor: refactor JsxRuntime namespace to JsxRuntimeOptions
The commit refactors the JSX runtime handling code by:
1. Renaming JsxRuntime namespace to JsxRuntimeOptions
2. Splitting logic into getFromContext() and getFromAnnotation() methods
3. Moving regex constants to shared RegExp.ts
4. Simplifying options handling and annotation parsing1 parent 45360e0 commit 54b1742
File tree
30 files changed
+236
-252
lines changed- packages
- plugins/eslint-plugin-react-x/src/rules
- utilities/kit
- docs
- @eslint-react/namespaces
- JsxRuntimeOptions
- functions
- type-aliases
- JsxRuntime
- functions
- interfaces
- variables
- LanguagePreference
- functions
- variables
- src
- JsxRuntimeOptions
- JsxRuntime
- LanguagePreference
30 files changed
+236
-252
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
41 | 39 | | |
42 | | - | |
43 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
packages/utilities/kit/docs/@eslint-react/namespaces/JsxRuntime/interfaces/JsxRuntimeAnnotation.md
Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
0 commit comments