mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
4b81f4d963
Honor Babel React Compiler 1.0.0's default ESLint and Flow suppression bailouts even when validation flags are enabled. Validation: - `cargo test -p oxc_react_compiler` - `cargo clippy -p oxc_react_compiler --all-targets -- -D warnings` - Direct fixture comparison with `babel-plugin-react-compiler@1.0.0` Caveat: Babel 1.0.0 treats block disables as open-ended; this change preserves that behavior. AI-assisted.
6 lines
127 B
JavaScript
6 lines
127 B
JavaScript
function Component({ value }) {
|
|
// $FlowFixMe[react-rule-hook]
|
|
const doubled = value * 2;
|
|
return <div>{doubled}</div>;
|
|
}
|