PR #2702 adds a temporary migration workaround for eslint-plugin-react-refresh@0.5.7. Its Vite preset enables allowCompoundComponents. @oxlint/migrate@1.82.0 copies this option to react/only-export-components, but the bundled Oxlint rejects it. Migration therefore removes the option from root and override rules and warns the user.
Remove this workaround when the bundled @oxlint/migrate and Oxlint support the option end to end. Migrator support alone is insufficient if Oxlint still rejects the generated configuration. The final behavior must preserve allowCompoundComponents and accept the migrated configuration in vp check.
The schema guard in #2702 will fail when the installed Oxlint schema gains the option, so the workaround is reviewed during the dependency update.
PR #2702 adds a temporary migration workaround for
eslint-plugin-react-refresh@0.5.7. Its Vite preset enablesallowCompoundComponents.@oxlint/migrate@1.82.0copies this option toreact/only-export-components, but the bundled Oxlint rejects it. Migration therefore removes the option from root and override rules and warns the user.Remove this workaround when the bundled
@oxlint/migrateand Oxlint support the option end to end. Migrator support alone is insufficient if Oxlint still rejects the generated configuration. The final behavior must preserveallowCompoundComponentsand accept the migrated configuration invp check.allowCompoundComponents.stripUnsupportedReactRefreshOption, its root and override calls, and the related warning frompackages/cli/src/migration/migrator/eslint.ts.packages/cli/src/migration/__tests__/react-refresh-options.spec.tswith coverage that preserves the option in root and override rules without a warning.new_create_vite_migrates_eslint_prettiersnapshot to retain the supported option. Keep itsvp checkstep and confirm that the generated React TypeScript project accepts the configuration.The schema guard in #2702 will fail when the installed Oxlint schema gains the option, so the workaround is reviewed during the dependency update.