Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 9, 2024
1 parent 9968a20 commit b9669c6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions crates/oxc_transformer/src/typescript/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ pub fn import_equals_cannot_be_used_in_esm(span: Span) -> OxcDiagnostic {
}

pub fn export_assignment_cannot_bed_used_in_esm(span: Span) -> OxcDiagnostic {
OxcDiagnostic::warn(
"Export assignment cannot be used when targeting ECMAScript modules.",
)
.with_help(
"Consider using 'export default' or another module format instead.",
)
.with_label(span)
.with_error_code("TS", "1203")
OxcDiagnostic::warn("Export assignment cannot be used when targeting ECMAScript modules.")
.with_help("Consider using 'export default' or another module format instead.")
.with_label(span)
.with_error_code("TS", "1203")
}

pub fn ambient_module_nested(span: Span) -> OxcDiagnostic {
Expand Down

0 comments on commit b9669c6

Please sign in to comment.