prettier / prettier-emacs

Minor mode to format JS code on file save
http://jlongster.com/A-Prettier-Formatter
372 stars 53 forks source link

Nice work #27

Open ttmarek opened 6 years ago

ttmarek commented 6 years ago

This isn't really an issue, just wanted to say thanks for making this. It works really well for me. 👍 🥇

Only thing I might make a pull request for in the future is for it to read the prettier config from package.json or prettier.config.x. But, for now, this does the trick nicely.

rcoedo commented 6 years ago

That's something many people complain about, a PR would be really appreciated!

Maybe you can try using https://github.com/codesuki/add-node-modules-path to use your node_modules/.bin/prettier, I'm not sure if that will force it to read the configuration from the json file though.

rcoedo commented 6 years ago

Another user commented an usage example in a previous issue. I updated the readme in case you find it useful.

nickmccurdy commented 6 years ago

It should pick up package.json now, maybe Prettier is out of date?