Files
oxc-project__oxc/crates/oxc_react_compiler/tests/snapshots/default-suppression-flow.snap
Boshen dec0a86412 fix(react-compiler): standardize diagnostics (#25702)
Standardize React Compiler diagnostics with concise titles, primary labels, actionable help, notes, structured categories, and official guidance links.

Preserve React guidance when diagnostics are surfaced through Oxlint, and refresh affected snapshots.

AI-assisted; reviewed and validated by the contributor.
2026-08-15 13:31:34 +00:00

10 lines
956 B
Plaintext

---
source: crates/oxc_react_compiler/tests/snapshot.rs
input_file: crates/oxc_react_compiler/fixtures/default-suppression-flow.js
---
Diagnostics:
OxcDiagnostic { inner: OxcDiagnosticInner { message: "React rule suppression prevents optimization", labels: [LabeledSpan { label: Some("Found React rule suppression"), span: Span { start: 34, end: 64 }, primary: true }], help: Some("Remove the suppression and address the reported React rule violation"), note: Some("React Compiler has skipped optimizing this component because one or more React rule violations were reported by Flow. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior. Found suppression `$FlowFixMe[react-rule-hook]`"), severity: Error, code: OxcCode { scope: Some("react-compiler"), number: Some("Suppression") }, url: Some("https://react.dev/reference/eslint-plugin-react-hooks") } }
No changes.