julianrubisch / better-stimulus

An opinionated collection of StimulusJS best practices
https://www.betterstimulus.com
266 stars 16 forks source link

adds prettier config #48

Closed adrienpoly closed 3 years ago

adrienpoly commented 3 years ago

vscode user here and when editing a file it would largely change the format on save with the default JS formatting of VScode.

This PR adds a simple prettier config file that I think is quite close to what you might have as a default. At least it seemed to be as close as I could get on several pages

{
  "printWidth": 120,
  "semi": false,
  "singleQuote": true,
  "bracketSpacing": true,
  "arrowParens": "avoid"
}