Skip to content

Commit b89700c

Browse files
reyronaldZaccc123
authored andcommitted
Include {json,css} files in prettier command (facebook#3894)
Update User Guide's README.md to include `json` and `css` files in the command to format the entire project for the first time with prettier, that it's consistent with the `lint-staged` command.
1 parent 493a379 commit b89700c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/template/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Next we add a 'lint-staged' field to the `package.json`, for example:
352352
"scripts": {
353353
```
354354

355-
Now, whenever you make a commit, Prettier will format the changed files automatically. You can also run `./node_modules/.bin/prettier --single-quote --write "src/**/*.{js,jsx}"` to format your entire project for the first time.
355+
Now, whenever you make a commit, Prettier will format the changed files automatically. You can also run `./node_modules/.bin/prettier --single-quote --write "src/**/*.{js,jsx,json,css}"` to format your entire project for the first time.
356356

357357
Next you might want to integrate Prettier in your favorite editor. Read the section on [Editor Integration](https://prettier.io/docs/en/editors.html) on the Prettier GitHub page.
358358

0 commit comments

Comments
 (0)