{"repo":"prettier/pretty-quick","free":true,"listed":false,"github":"https://github.com/prettier/pretty-quick","clone":"git clone https://github.com/prettier/pretty-quick.git","description":"⚡ Get Pretty Quick","language":"TypeScript","stars":2289,"topics":["prettier","cli","git","mercurial"],"license":"MIT","category":"cli-tools","readme_excerpt":"pretty-quick Get Pretty Quick Runs Prettier on your changed files. Supported source control managers: - Git - Mercurial Install Usage Pre-Commit Hook You can run pretty-quick as a pre-commit hook using simple-git-hooks . In package.json , add: CLI Flags --staged (only git) Pre-commit mode. Under this flag only staged files will be formatted, and they will be re-staged after formatting. Partially staged files will not be re-staged after formatting and pretty-quick will exit with a non-zero exit code. The intent is to abort the git commit and allow the user to amend their selective staging to include formatting fixes. --no-restage (only git) Use with the --staged flag to skip re-staging files after formatting. --branch When not in staged pre-commit mode, use this flag to compare changes with the specified branch. Defaults to master (git) / default (hg) branch. --pattern Filters the files for the given minimatch pattern. For example pretty-quick --pattern \" / . (js jsx)\" or pretty-quick --pattern \" / .js\" --pattern \" / .jsx\" --verbose Outputs the name of each file right before it is processed. This can be useful if Prettier throws an error and you can't identify which file is causing the problem. --bail Prevent git commit if any files are fixed. --check Check that files are correctly formatted, but don't format them. This is useful on CI to verify that all changed files in the current branch were correctly formatted. --no-resolve-config Do not resolve prettier config when determ","default_branch":null,"files":null,"tree":[],"storefront":"/r/prettier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prettier/pretty-quick/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}