You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin/docs/rules/prefer-ts-expect-error.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: 'Enforce using `@ts-expect-error` over `@ts-ignore`.'
9
9
TypeScript allows you to suppress all errors on a line by placing a comment starting with `@ts-ignore` or `@ts-expect-error` immediately before the erroring line.
10
10
The two directives work the same, except `@ts-expect-error` causes a type error if placed before a line that's not erroring in the first place.
11
11
12
-
This means its easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed.
12
+
This means it's easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed.
13
13
This is dangerous, as if a new error arises on that line it'll be suppressed by the forgotten about `@ts-ignore`, and so be missed.
0 commit comments