1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 08:53:39 +02:00

prettier: add --write example for js and ts files (#8069)

This commit is contained in:
Choi Young-jin 2022-05-19 19:43:33 +09:00 committed by GitHub
parent 59e789fc73
commit 715be54612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,3 +22,7 @@
- Format files or directories recursively using single quotes and no trailing commas:
`prettier --single-quote --trailing-comma {{none}} --write {{path/to/file_or_directory}}`
- Format JavaScript and TypeScript files recursively, replacing the original:
`prettier --write "**/*.{js,jsx,ts,tsx}"`