문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top