Skip to content

Commit 79ca162

Browse files
committed
update docusaurus
1 parent 8c77222 commit 79ca162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

website/src/pages/index.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,12 @@ const renderUserAvatar = (avatar: string) => {...}
422422

423423
### Type Error
424424

425-
When a TypeScript error cannot be mitigated, use `@ts-expect-error` as a last resort to suppress it. This directive enables the TypeScript compiler to indicate when the suppressed line no longer contains an error, ensuring that suppressed errors are revisited when they are no longer relevant.
425+
When a TypeScript error cannot be mitigated, use `@ts-expect-error` as a last resort to suppress it.
426+
427+
This directive enables the TypeScript compiler to indicate when the suppressed line no longer contains an error, ensuring that suppressed errors are revisited when they are no longer relevant, unlike `@ts-ignore`, which can silently linger even after the error is resolved.
426428

427429
- Always use `@ts-expect-error` with a clear description explaining why it is necessary.
428-
- The use of `@ts-ignore` should be avoided, as it does not provide tracking of suppressed errors.
430+
- Avoid `@ts-ignore`, as it does not track suppressed errors.
429431

430432
<Rule href="https://typescript-eslint.io/rules/ban-ts-comment/#allow-with-description">{`'@typescript-eslint/ban-ts-comment': [
431433
'error',

0 commit comments

Comments
 (0)