mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
dec0a86412
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.
10 lines
956 B
Plaintext
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.
|