{"name":"pretty-quick","version":"0.0.0-development","description":"Get Pretty Quick","repository":{"type":"git","url":"git+https://github.com/azz/pretty-quick.git"},"author":{"name":"Lucas Azzola","email":"@azz"},"bin":{"pretty-quick":"./bin/pretty-quick"},"license":"MIT","dependencies":{"mri":"^1.1.0"},"peerDependencies":{"prettier":"^1.9.2"},"gitHead":"9940b1904f8ced963cc0443894fbd8abe9add820","bugs":{"url":"https://github.com/azz/pretty-quick/issues"},"homepage":"https://github.com/azz/pretty-quick#readme","_id":"pretty-quick@0.0.0-development","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"azz","email":"derflatulator@gmail.com"},"dist":{"integrity":"sha512-up9W+8PFC9Dwgrn7gXxreWgnYaHKveR92hjIX4X/MQDmFbfIy/eRWFpfWfQybic6lH1EsUzr/azCvFWdP3MjGw==","shasum":"ede7c904fbc8f2bc00e15227be4eaa171954693b","tarball":"http://registry-npm.ywwl.com/pretty-quick/download/pretty-quick-0.0.0-development.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNV2VlGEBJwDjDAKAArtkJRhNsKVkpMOhTkTTWDGyWxAiEAqSIKpxdaA6tXJpv8HvpiqE5odRO/LgkmeS+a7Z9g4dM="}],"size":712,"noattachment":false,"key":"/pretty-quick/-/pretty-quick-0.0.0-development.tgz"},"maintainers":[{"name":"azz","email":"derflatulator@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pretty-quick-0.0.0-development.tgz_1515328975199_0.4173832784872502"},"directories":{},"readme":"# `pretty-quick`\n\n[![GitHub Actions](https://github.com/prettier/pretty-quick/workflows/CI/badge.svg)](https://github.com/prettier/pretty-quick/actions/workflows/ci.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/prettier/pretty-quick.svg)](https://codecov.io/gh/prettier/pretty-quick)\n[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Fun-ts%2Flib-boilerplate%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage)\n[![npm](https://img.shields.io/npm/v/pretty-quick.svg)](https://www.npmjs.com/package/pretty-quick)\n[![GitHub Release](https://img.shields.io/github/release/prettier/pretty-quick)](https://github.com/prettier/pretty-quick/releases)\n\n[![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![changesets](https://img.shields.io/badge/maintained%20with-changesets-176de3.svg)](https://github.com/changesets/changesets)\n\n> Get Pretty Quick\n\nRuns [Prettier](https://prettier.io) on your changed files.\n\n![demo](./img/demo.gif)\n\nSupported source control managers:\n\n- Git\n- Mercurial\n\n## Install\n\n```sh\n# npm\nnpm install -D prettier pretty-quick\n```\n\n```sh\n# yarn\nyarn add -D prettier pretty-quick\n```\n\n## Usage\n\n```sh\n# npx\nnpx pretty-quick\n\n# yarn\nyarn pretty-quick\n```\n\n## Pre-Commit Hook\n\nYou can run `pretty-quick` as a `pre-commit` hook using [`simple-git-hooks`](https://github.com/toplenboren/simple-git-hooks).\n\n```sh\n# npm\nnpm install -D simple-git-hooks\n\n# yarn\nyarn add -D simple-git-hooks\n```\n\nIn `package.json`, add:\n\n```json\n\"simple-git-hooks\": {\n  \"pre-commit\": \"pretty-quick --staged\"\n}\n```\n\n## CLI Flags\n\n### `--staged` (only git)\n\nPre-commit mode. Under this flag only staged files will be formatted, and they will be re-staged after formatting.\n\nPartially 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.\n\n### `--no-restage` (only git)\n\nUse with the `--staged` flag to skip re-staging files after formatting.\n\n### `--branch`\n\nWhen not in `staged` pre-commit mode, use this flag to compare changes with the specified branch. Defaults to `master` (git) / `default` (hg) branch.\n\n### `--pattern`\n\nFilters the files for the given [minimatch](https://github.com/isaacs/minimatch) pattern.\nFor example `pretty-quick --pattern \"**/*.*(js|jsx)\"` or `pretty-quick --pattern \"**/*.js\" --pattern \"**/*.jsx\"`\n\n### `--verbose`\n\nOutputs 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.\n\n### `--bail`\n\nPrevent `git commit` if any files are fixed.\n\n### `--check`\n\nCheck 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.\n\n### `--no-resolve-config`\n\nDo not resolve prettier config when determining which files to format, just use standard set of supported file types & extensions prettier supports. This may be useful if you do not need any customization and see performance issues.\n\nBy default, pretty-quick will check your prettier configuration file for any overrides you define to support formatting of additional file extensions.\n\nExample `.prettierrc` file to support formatting files with `.cmp` or `.page` extensions as html.\n\n```json\n{\n  \"printWidth\": 120,\n  \"bracketSpacing\": false,\n  \"overrides\": [\n    {\n      \"files\": \"*.{cmp,page}\",\n      \"options\": { \"parser\": \"html\" }\n    }\n  ]\n}\n```\n\n<!-- Undocumented = Unsupported :D\n\n### `--config`\n\nPath to a `.prettierrc` file.\n\n### `--since`\n\nA SCM revision such as a git commit hash or ref.\n\nFor example `pretty-quick --since HEAD` will format only staged files.\n\n-->\n\n### `--ignore-path`\n\nCheck an alternative file for ignoring files with the same format as [`.prettierignore`](https://prettier.io/docs/en/ignore#ignoring-files).\nFor example `pretty-quick --ignore-path .gitignore`\n\n## Configuration and Ignore Files\n\n`pretty-quick` will respect your [`.prettierrc`](https://prettier.io/docs/en/configuration), [`.prettierignore`](https://prettier.io/docs/en/ignore#ignoring-files), and [`.editorconfig`](http://editorconfig.org/) files if you don't use `--ignore-path` . Configuration files will be found by searching up the file system. `.prettierignore` files are only found from the repository root and the working directory that the command was executed from.\n","publish_time":1515328975384,"_cnpm_publish_time":1515328975384,"dist-tags":{"latest":"4.2.2","next":"5.0.0-next.2","release-v4":"4.2.1"}}