Forrest logo
back to context overview

prettier

List of commands for prettier:

  • prettier:tldr:4238b prettier: Format a file and print the result to `stdout`.
    $ prettier ${filename}
    try on your machine
    explain this command
  • prettier:tldr:50bfb prettier: Format JavaScript and TypeScript files recursively, replacing the original.
    $ prettier --write "**/*.{js,jsx,ts,tsx}"
    try on your machine
    explain this command
  • prettier:tldr:7d2ee prettier: Format a file or directory, replacing the original.
    $ prettier --write ${filename_or_directory}
    try on your machine
    explain this command
  • prettier:tldr:97d3d prettier: Format files or directories recursively using single quotes and no trailing commas.
    $ prettier --single-quote --trailing-comma ${none} --write ${filename_or_directory}
    try on your machine
    explain this command
  • prettier:tldr:cb01d prettier: Check if a specific file has been formatted.
    $ prettier --check ${filename}
    try on your machine
    explain this command
  • prettier:tldr:debc1 prettier: Run with a specific configuration file.
    $ prettier --config ${path-to-config_file} ${filename}
    try on your machine
    explain this command
back to context overview