Giter Site home page Giter Site logo

prettier-atom's Introduction

Prettier for Atom Watch on GitHubStar on GitHubTweet

Version Downloads Build Status Code Coverage MIT License All Contributors PRs Welcome

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

Demo

prettier demo

Installation

apm install prettier-atom

Or, Settings → Install → Search for prettier-atom

Make sure to restart Atom app after package installation.

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.

prettier-eslint demo

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, Rob Wise merged prettier-eslint back into prettier-atom.

Maintainers

Rob Wise

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

💻

Dara Hak

💻

Stephen John Sorensen

💻

Lukas Geiger

💻

Viktor Charypar

💻 ⚠️

Mats Högberg

💻

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

LICENSE

MIT

prettier-atom's People

Contributors

robwise avatar jlongster avatar arnarthor avatar charypar avatar orisomething avatar da-vaibhav avatar mhgbrg avatar lgeiger avatar transcranial avatar vjeux avatar ahutchings avatar 1st8 avatar darahak avatar schnerd avatar karlhorky avatar ryancole avatar spudly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.