Skip to content

ignacioola/prettier-atom

 
 

Repository files navigation

Prettier for Atom

Atom package to format your JavaScript using Prettier. Comes with powerful optional ESlint integration.

Version Downloads MIT License

All Contributors PRs Welcome Code of Conduct

Watch on GitHub Star on GitHub Tweet

Demo

Installation

apm install prettier-atom

Or, Settings → Install → Search for prettier-atom

Usage

Use two ways:

  • Invoke manually using the keyboard shortcut (if no selection, whole file is formatted): ctrl + alt + f
  • Automatically format on save (requires enabling in Package → prettier-atom → Format)

If you use ESlint, check the "ESLint Integration" checkbox and poof, everything should work (we use Kent Dodds's prettier-eslint plugin under the hood). We will recursively search up the file tree for your package.json and eslint settings and use them when formatting.

More detailed descriptions of each option can be found in the Atom settings for this plugin.

Please open a pull request or file an issue if you notice bugs or something doesn't work as it should!

Inspiration

This repository was created by James Long to go along with his Prettier project. Kent C. Dodds extended Prettier to add eslint --fix integration as prettier-eslint and forked the original prettier-atom plugin to create the prettier-eslint-atom plugin. Because it became clear that the plugins were very similar and thus maintenance made easier by combining the two, prettier-eslint-atom was merged back into prettier-atom.

Contributors

Thanks goes to these people (emoji key):


James Long

💬 💻 📖 🔌 👀

Rob Wise

💻 📖

Kent C. Dodds

💻 📖 🚇

Luca Barone


Arnar Þór Sveinsson

💻

Adam Miskiewicz

💻

Ori Livni

💻

Leon Chen

💻

Christopher Chedeau

💬 💻 🔌

Christoph Geschwind

💻

Andrew Hutchings

💻

David Schnurr

💻

Ryan Cole

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

About

An atom package for the prettier formatter.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%