Hello, Prettier | Toph Tucker | Observable
•ojs
•ojs
•ojs
•ojs
Comments (2)
Jacob Rus
Apr 8, 2021
One slightly shorter version (also may want to pin versions the same way) is: prettier = require('prettier@2', 'prettier@2/parser-babel.js') and then later: prettier.format("2+2", {parser: "babel", plugins: [prettier]})
Toph Tucker
Jul 25, 2021
ty jacob! done
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Toph Tucker
5
Reply
Add comment
Subscribe to notifications
1
Hello, Prettier | Toph Tucker | Observable