Skip to content

Commit 5990f17

Browse files
committed
fix(linter): change typescript/no-confusing-void-expression to pedantic (#13473)
This rule falls under `plugin:@typescript-eslint/strict-type-checked`. This rule does not flag any incorrect code.
1 parent a654bd7 commit 5990f17

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

crates/oxc_language_server/src/snapshots/fixtures_linter_tsgolint@no-floating-promises_index.ts.snap

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
source: crates/oxc_language_server/src/tester.rs
33
input_file: crates/oxc_language_server/fixtures/linter/tsgolint/no-floating-promises/index.ts
44
---
5-
code: "typescript-eslint(no-confusing-void-expression)"
6-
code_description.href: "None"
7-
message: "Returning a void expression from an arrow function shorthand is forbidden. Please add braces to the arrow function."
8-
range: Range { start: Position { line: 0, character: 50 }, end: Position { line: 0, character: 66 } }
9-
related_information[0].message: ""
10-
related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts"
11-
related_information[0].location.range: Range { start: Position { line: 0, character: 50 }, end: Position { line: 0, character: 66 } }
12-
severity: Some(Warning)
13-
source: Some("oxc")
14-
tags: None
15-
fixed: Single(FixedContent { message: None, code: "{ resolve(\"value\"); }", range: Range { start: Position { line: 0, character: 49 }, end: Position { line: 0, character: 66 } } })
16-
17-
185
code: "typescript-eslint(no-floating-promises)"
196
code_description.href: "None"
207
message: "Promises must be awaited.\nhelp: The promise must end with a call to .catch, or end with a call to .then with a rejection handler, or be explicitly marked as ignored with the `void` operator."

crates/oxc_linter/src/rules/typescript/no_confusing_void_expression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ declare_oxc_lint!(
5151
/// ```
5252
NoConfusingVoidExpression(tsgolint),
5353
typescript,
54-
correctness,
54+
pedantic,
5555
pending,
5656
);
5757

0 commit comments

Comments
 (0)