Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 255
daniel.sedlacek Avatar asked Feb 17 '14 10:02

daniel.sedlacek


1 Answers

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

like image 145
basarat Avatar answered Oct 26 '22 21:10

basarat