Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit b31ec82

Browse files
author
Mike Nikles
committed
Use a .prettierrc to allow editors to pick up Prettier config.
This allows editors to pick up the Prettier config. Combined with a "format on save" option, this cleans up the output of `git diff` prior to committing since files get formatted with Prettier when a user saves a file.
1 parent 9115337 commit b31ec82

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
flow-typed
2+
package.json

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
},
258258
"lint-staged": {
259259
"*.js": [
260-
"prettier --write --single-quote --trailing-comma es5",
260+
"prettier --write",
261261
"eslint --fix",
262262
"git add"
263263
]

0 commit comments

Comments
 (0)