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:
parent
59e789fc73
commit
715be54612
1 changed files with 4 additions and 0 deletions
|
@ -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}"`
|
||||
|
|
Loading…
Add table
Reference in a new issue