Commit 09657ad
feat: Migrate the
* Add basic support for migrating settings field for oxlint plugins.
* Add an integration test for the settings migration.
* Add special logic for handling the react.version field, as `detect` is commonly used and we should make sure not to output an invalid oxlint config.
* Resolve feedback, remove runtime value from types.ts.
* Resolve feedback, simplify code for skipping unsupported settings keys.
* Update the nextjs config snapshot.
* Simplify deepMerge.
* Simplify the assignment logic further.
* Use type-only imports.
* Update the settings migration to include settings for JS Plugins.
When the `--js-plugins` option is passed, we should migrate all settings (other than import-related settings, as they are not supported by the native plugin).
* Update readme.
* Drop a few unsupported settings keys.
And genericize the code a bit so we can easily add more in the future.
---------
Co-authored-by: Alexander S. <sysix@sysix-coding.de>settings field from ESLint configs (#361)1 parent f070ec4 commit 09657ad
File tree
12 files changed
+1151
-10
lines changed- integration_test
- __snapshots__
- projects
- src
12 files changed
+1151
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
674 | 678 | | |
675 | 679 | | |
676 | 680 | | |
677 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
678 | 686 | | |
679 | 687 | | |
680 | 688 | | |
| |||
1034 | 1042 | | |
1035 | 1043 | | |
1036 | 1044 | | |
1037 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1038 | 1050 | | |
1039 | 1051 | | |
1040 | 1052 | | |
| |||
1328 | 1340 | | |
1329 | 1341 | | |
1330 | 1342 | | |
1331 | | - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1332 | 1348 | | |
1333 | 1349 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
419 | 421 | | |
420 | 422 | | |
421 | 423 | | |
| 424 | + | |
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
| |||
559 | 562 | | |
560 | 563 | | |
561 | 564 | | |
| 565 | + | |
562 | 566 | | |
563 | 567 | | |
564 | 568 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
407 | 409 | | |
408 | 410 | | |
409 | 411 | | |
| 412 | + | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
545 | 548 | | |
546 | 549 | | |
547 | 550 | | |
| 551 | + | |
548 | 552 | | |
549 | 553 | | |
550 | 554 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
| |||
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
603 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
604 | 610 | | |
605 | 611 | | |
606 | 612 | | |
| |||
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
910 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
911 | 920 | | |
912 | 921 | | |
913 | 922 | | |
| |||
1176 | 1185 | | |
1177 | 1186 | | |
1178 | 1187 | | |
1179 | | - | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1180 | 1192 | | |
1181 | 1193 | | |
0 commit comments