JSlint上的TypeScript代码-它还能教我编写更好的代码吗? [英] JSlint on TypeScript code - can it still teach me to write better code?

查看:50
本文介绍了JSlint上的TypeScript代码-它还能教我编写更好的代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TypeScript生成的代码上使用JSlint仍然可以教我编写更好的代码吗?如果可以,请提供一个或两个示例吗?

Can using JSlint on TypeScript generated code still teach me to write better code? If yes en can you please provide one or two examples?

谢谢

推荐答案

不是.由于生成的javascript在错误的打字稿/良好的打字稿(例如,缺少分号)之间是一致的.

Nope. Since the generated javascript is consistent between bad typescript / good typescript (e.g. missing semicolons).

对于打字稿,有一个(推荐)ts-lint: https://www.npmjs.org/package/tslint 还有一个grunt插件: https://www.npmjs.org/包/grunt-tslint

For typescript there is a (recommended) ts-lint : https://www.npmjs.org/package/tslint Also has a grunt plugin : https://www.npmjs.org/package/grunt-tslint

这篇关于JSlint上的TypeScript代码-它还能教我编写更好的代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆