Skip to content

Commit bf54bf2

Browse files
capajeps1lon
andauthored
Recommend @ts-expect-error over @ts-ignore (#489)
Co-authored-by: eps1lon <silbermann.sebastian@gmail.com>
1 parent f03211f commit bf54bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Read [TypeScript's official Guide for migrating from JS](https://www.typescriptl
2828

2929
Misc tips/approaches successful companies have taken
3030

31-
- `@ts-ignore` on compiler errors for libraries with no typedefs
31+
- `@ts-expect-error` on compiler errors for libraries with no typedefs
3232
- pick ESLint over TSLint (source: [ESLint](https://eslint.org/blog/2019/01/future-typescript-eslint) and [TS Roadmap](https://github.com/Microsoft/TypeScript/issues/29288)). [You can convert TSlint to ESlint with this tool](https://github.com/typescript-eslint/tslint-to-eslint-config).
3333
- New code must always be written in TypeScript. No exceptions. For existing code: If your task requires you to change JavaScript code, you need to rewrite it. (Source: [Hootsuite][hootsuite])
3434

0 commit comments

Comments
 (0)