News for hackers. Stuff that matters.
Re:Using Prettier to format your JavaScript code by polskibus on Friday March 09, 2018 @02:12AM (#16550234)
Does it work with Typescript? If not, is there a TS equivalent?
Re:Using Prettier to format your JavaScript code by khaliqgant on Friday March 09, 2018 @02:48AM (#16550351)
I’ve been working on this: https://github.com/khaliqgant/typescript-build

It integrates prettier, eslint:fix, and tslint:fix as part of the build process. Uses husky to run as a precommit hook as well.

Life saver when developing.

Re:Using Prettier to format your JavaScript code by iMarv on Friday March 09, 2018 @02:43AM (#16550334)
It works perfectly with Typescript
Re:Using Prettier to format your JavaScript code by polskibus on Friday March 09, 2018 @11:13AM (#16552728)
Including tsx?
Re:Using Prettier to format your JavaScript code by saranshk on Friday March 09, 2018 @02:16AM (#16550250)
Yes, TS support was baked in recent versions