Skip to content

Commit e1c31d3

Browse files
authored
Remove --single-quote from prettier examples
Passing options directly to the cli is not great practice, since default editor integrations won't pick it up and many people are just going to copy paste this snippet. This change removes that customization and prettier will use its very sane defaults. Closes #7615
1 parent 6dec056 commit e1c31d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docusaurus/docs/setting-up-your-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ Next we add a 'lint-staged' field to the `package.json`, for example:
163163
},
164164
+ "lint-staged": {
165165
+ "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
166-
+ "prettier --single-quote --write",
166+
+ "prettier --write",
167167
+ "git add"
168168
+ ]
169169
+ },
170170
"scripts": {
171171
```
172172

173-
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,ts,tsx,json,css,scss,md}"` to format your entire project for the first time.
173+
Now, whenever you make a commit, Prettier will format the changed files automatically. You can also run `./node_modules/.bin/prettier --write "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"` to format your entire project for the first time.
174174

175175
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.

0 commit comments

Comments
 (0)