juju / juju-gui

Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.
Other
182 stars 85 forks source link

Format all .js files using Prettier #3864

Closed barrymcgee closed 6 years ago

barrymcgee commented 6 years ago

Please review https://github.com/juju/juju-gui/pull/3863 before this PR

I'm going to split this task into two PRs, one for Sass and one for Javascript.

This PR is JS only.

Each branch will use the same Prettier config file. That is;

{
  "bracketSpacing": false,
  "singleQuote": true,
  "printWidth": 95
}
hatched commented 6 years ago

The rational behind the line length limit is to keep the lines short enough so you can have multiple files side by side on laptop screens. You don't increase that and reduce the legibility to serve some formatting tool :)

barrymcgee commented 6 years ago

For the conclusion to this discussion, please see https://github.com/juju/juju-gui/pull/3863#issuecomment-436338292

Thank you all 🙏🏻