Y
Hacker News
new
|
ask
|
show
|
jobs
by
scrollaway
3256 days ago
On that note I wish tslint would stop trying to do code formatting rules. prettier nowadays does code formatting far better than tslint ever did.
2 comments
marksomnian
3255 days ago
I thought Prettier didn't support TypeScript, as the TS AST is completely different to the JS AST.
link
scrollaway
3255 days ago
It's not very different; Typescript strives to be a JS superset.
Anyhow, it does support it just fine. Even tsx/jsx (react-extended js/ts).
link
slackingoff2017
3255 days ago
:-) same here. Those are the few rules I shut off. TsLint really shines in static analysis.
link