Skip to content

Commit fea8db6

Browse files
camchenrycamc314
authored andcommitted
Fix code block
Signed-off-by: Cam McHenry <camchenry@users.noreply.github.com>
1 parent a253976 commit fea8db6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/blog/2025-12-01-type-aware-alpha.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ Previously, this would silently fail, but now the configuration is actually pass
8989

9090
Rules that run in `tsgolint` can now be disabled similar to any other `oxlint` rule by placing a comment in the file or on a line:
9191

92-
```js
93-
// oxlint-disable-next-line typescript/no-floating-promises
92+
```ts
93+
/* oxlint-disable typescript/no-floating-promises */
9494

95-
/* oxlint-disable-file typescript/no-floating-promises
95+
// oxlint-disable-next-line typescript/no-floating-promises
96+
[1, 2, 3].map(async x => x + 1);
9697
```
9798

9899
Previously, this didn't actually disable the rule, but now it will.

0 commit comments

Comments
 (0)