|
| 1 | +--- |
| 2 | +source: crates/oxc_language_server/src/tester.rs |
| 3 | +input_file: crates/oxc_language_server/fixtures/linter/tsgolint/no-floating-promises/index.ts |
| 4 | +--- |
| 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 | + |
| 18 | +code: "typescript-eslint(no-floating-promises)" |
| 19 | +code_description.href: "None" |
| 20 | +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." |
| 21 | +range: Range { start: Position { line: 1, character: 0 }, end: Position { line: 1, character: 8 } } |
| 22 | +related_information[0].message: "" |
| 23 | +related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts" |
| 24 | +related_information[0].location.range: Range { start: Position { line: 1, character: 0 }, end: Position { line: 1, character: 8 } } |
| 25 | +severity: Some(Warning) |
| 26 | +source: Some("oxc") |
| 27 | +tags: None |
| 28 | +fixed: Multiple([FixedContent { message: Some("Promises must be awaited."), code: "void ", range: Range { start: Position { line: 1, character: 0 }, end: Position { line: 1, character: 0 } } }, FixedContent { message: Some("Promises must be awaited."), code: "await ", range: Range { start: Position { line: 1, character: 0 }, end: Position { line: 1, character: 0 } } }]) |
| 29 | + |
| 30 | + |
| 31 | +code: "typescript-eslint(no-floating-promises)" |
| 32 | +code_description.href: "None" |
| 33 | +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." |
| 34 | +range: Range { start: Position { line: 7, character: 0 }, end: Position { line: 7, character: 32 } } |
| 35 | +related_information[0].message: "" |
| 36 | +related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts" |
| 37 | +related_information[0].location.range: Range { start: Position { line: 7, character: 0 }, end: Position { line: 7, character: 32 } } |
| 38 | +severity: Some(Warning) |
| 39 | +source: Some("oxc") |
| 40 | +tags: None |
| 41 | +fixed: Multiple([FixedContent { message: Some("Promises must be awaited."), code: "void ", range: Range { start: Position { line: 7, character: 0 }, end: Position { line: 7, character: 0 } } }, FixedContent { message: Some("Promises must be awaited."), code: "await ", range: Range { start: Position { line: 7, character: 0 }, end: Position { line: 7, character: 0 } } }]) |
| 42 | + |
| 43 | + |
| 44 | +code: "typescript-eslint(no-floating-promises)" |
| 45 | +code_description.href: "None" |
| 46 | +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." |
| 47 | +range: Range { start: Position { line: 9, character: 0 }, end: Position { line: 9, character: 32 } } |
| 48 | +related_information[0].message: "" |
| 49 | +related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts" |
| 50 | +related_information[0].location.range: Range { start: Position { line: 9, character: 0 }, end: Position { line: 9, character: 32 } } |
| 51 | +severity: Some(Warning) |
| 52 | +source: Some("oxc") |
| 53 | +tags: None |
| 54 | +fixed: Multiple([FixedContent { message: Some("Promises must be awaited."), code: "void ", range: Range { start: Position { line: 9, character: 0 }, end: Position { line: 9, character: 0 } } }, FixedContent { message: Some("Promises must be awaited."), code: "await ", range: Range { start: Position { line: 9, character: 0 }, end: Position { line: 9, character: 0 } } }]) |
| 55 | + |
| 56 | + |
| 57 | +code: "typescript-eslint(no-floating-promises)" |
| 58 | +code_description.href: "None" |
| 59 | +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." |
| 60 | +range: Range { start: Position { line: 11, character: 0 }, end: Position { line: 11, character: 34 } } |
| 61 | +related_information[0].message: "" |
| 62 | +related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts" |
| 63 | +related_information[0].location.range: Range { start: Position { line: 11, character: 0 }, end: Position { line: 11, character: 34 } } |
| 64 | +severity: Some(Warning) |
| 65 | +source: Some("oxc") |
| 66 | +tags: None |
| 67 | +fixed: Multiple([FixedContent { message: Some("Promises must be awaited."), code: "void ", range: Range { start: Position { line: 11, character: 0 }, end: Position { line: 11, character: 0 } } }, FixedContent { message: Some("Promises must be awaited."), code: "await ", range: Range { start: Position { line: 11, character: 0 }, end: Position { line: 11, character: 0 } } }]) |
| 68 | + |
| 69 | + |
| 70 | +code: "typescript-eslint(no-floating-promises)" |
| 71 | +code_description.href: "None" |
| 72 | +message: "An array of Promises may be unintentional.\nhelp: Consider handling the promises' fulfillment or rejection with Promise.all or similar, or explicitly marking the expression as ignored with the `void` operator." |
| 73 | +range: Range { start: Position { line: 13, character: 0 }, end: Position { line: 13, character: 34 } } |
| 74 | +related_information[0].message: "" |
| 75 | +related_information[0].location.uri: "file://<variable>/fixtures/linter/tsgolint/no-floating-promises/index.ts" |
| 76 | +related_information[0].location.range: Range { start: Position { line: 13, character: 0 }, end: Position { line: 13, character: 34 } } |
| 77 | +severity: Some(Warning) |
| 78 | +source: Some("oxc") |
| 79 | +tags: None |
| 80 | +fixed: None |
0 commit comments