我的应用有两次来自皮棉的警告:
no-use-before-declare is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
我见过this和this和this,等等。。。我发现皮棉土地上正在发生大量移民。不幸的是,Please use the built-in compiler checks
仍然含糊不清。
是否可以迁移这两个选项以消除警告并保留功能?
答案 0 :(得分:0)
“内置编译器检查”是指在tsconfig.json中启用noUnusedLocals
和noUnusedParameters
编译器选项。但是从那以后我就不会再打扰了,因为它们将是阻止编译的硬错误,并且不会变成警告。
我收集到皮棉土地上正在发生大量移民。
是的。从tslint到typescript-eslint:
Palantir,TSLint背后的支持者今年早些时候宣布: 他们会因为支持而弃用TSLint Typescript-eslint,以造福社区。您可以阅读更多 关于这里: https://medium.com/palantir/tslint-in-2019-1a144c2317a9
TypeScript团队本身也宣布了他们计划迁移 从TSLint到Typescript-eslint的TypeScript代码库,它们具有 一直是该项目的大力支持者。有关更多详细信息,请访问 https://github.com/microsoft/TypeScript/issues/30553