How can I disable all typescript type checking?

Add this to your tsconfig.json:

{
  "compilerOptions": {
    ...
    "checkJs": false
    ...
  }
}

and stick to .js/.jsx files for now. Use the .ts/.tsx extension only when you’re ready to use types.

If you would rather suppress the errors on a per-line basis, you can use a // @ts-ignore comment.

Leave a Comment