摘要: Step 4: ESLint We need to install ESLint tools for Typescript. yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser .eslintrc file: 阅读全文
posted @ 2022-08-29 19:27 Zhentiw 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Step 3: Turn on "noImplicitAny" From previous steps, we allow implicit any: https://www.cnblogs.com/Answer1215/p/16634618.html Now, we need to turn on 阅读全文
posted @ 2022-08-29 18:49 Zhentiw 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1. Compiling in "loose mode" Start with all tests passing Rename all .js to .ts, allowing implicit any Fix only things that are not type-checking, or 阅读全文
posted @ 2022-08-29 01:23 Zhentiw 阅读(59) 评论(0) 推荐(0) 编辑