Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
add config file for Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Jul 26, 2018
1 parent cd0d52d commit 8db6d1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
proseWrap: never
singleQuote: true

# these options are here for legacy reasons, i.e. the bulk of the code was originally written that way
jsxBracketSameLine: true
semi: false
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,19 @@ All of the documentation may then be found in the respective directories under `

### Tooling

#### Formatting

JavaScript files are formatted using [Prettier](https://prettier.io/), though note this should only be done when a file is new or heavily modified. You should install Prettier for whatever editor you use.

#### Linters

* Vim users: install `syntastic`
* Emacs users: install `flycheck`

For command-line alternatives there are the following:

- For JavaScript, [JSHint][14] which may be installed with `yarn add jshint`
- For CSS, run `make lint-css`
- For JavaScript, run `make lint-js`
- For HTML, [html-lint][15] which may be installed with `yarn add html-lint`

## Contributing
Expand Down

0 comments on commit 8db6d1b

Please sign in to comment.