JSlint on TypeScript code - can it still teach me to write better code?

不羁的心 提交于 2019-12-08 15:00:47

问题


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?

Thanks


回答1:


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

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



来源:https://stackoverflow.com/questions/21827126/jslint-on-typescript-code-can-it-still-teach-me-to-write-better-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!