Hi there ! I’ve created a snap for Prettier, which is an awesome code formatter for JavaScript, CSS, GraphQL and Markdown. It’s published on the store in beta channel. You can install it by typing
sudo snap install prettier --beta
in command line.
It would be many thanks if you can test this snap. To view how source file(s) will be formatted, run prettier <path-to-file-or-directory>
and the result will be printed to stdin. If you’re confident and want to write the result to the original files, add --write
option. Now you’ll have nice and tidy code! – if not , please report on this topic.
More information and options to play with can be found on the original documentation.
I have tested this on my Ubuntu 16.04 and 17.10 machine so far. It is not likely to cause hardware-specific errors, but anyway, the more the merrier. Any kind of reports or feedbacks are welcomed Thanks!