{"repo":"prettier/prettier-eslint-cli","free":true,"listed":false,"github":"https://github.com/prettier/prettier-eslint-cli","clone":"git clone https://github.com/prettier/prettier-eslint-cli.git","description":"CLI for prettier-eslint","language":"TypeScript","stars":546,"topics":["formatter","cli","javascript","prettier","eslint","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"prettier-eslint-cli CLI for [ prettier-eslint ][prettier-eslint] [![Build Status][build-badge]][build] [![Code Coverage][coverage-badge]][coverage] [![version][version-badge]][package] [![downloads][downloads-badge]][npm-stat] [![MIT License][license-badge]][license] [![PRs Welcome][prs-badge]][prs] [![Donate][donate-badge]][donate] [![Code of Conduct][coc-badge]][coc] [![Roadmap][roadmap-badge]][roadmap] [![Watch on GitHub][github-watch-badge]][github-watch] [![Star on GitHub][github-star-badge]][github-star] [![Tweet][twitter-badge]][twitter] The problem You have a bunch of files that you want to format using [ prettier-eslint ][prettier-eslint]. But prettier-eslint can only operate on strings. This solution This is a CLI that allows you to use prettier-eslint on one or multiple files. prettier-eslint-cli forwards on the filePath and other relevant options to prettier-eslint which identifies the applicable ESLint config for each file and uses that to determine the options for prettier and eslint --fix . Installation This module is distributed via [npm][npm] which is bundled with [node][node] and should be installed (with [ yarn ][yarn]) as one of your project's devDependencies : If you're still using the [ npm ][npm] client: npm install --save-dev prettier-eslint-cli Usage Typically you'll use this in your [npm scripts][npm scripts] (or [package scripts][package scripts]): This will format all .js files in the src directory. The argument you pass to the CLI is a [glob][glob","default_branch":null,"files":null,"tree":[],"storefront":"/r/prettier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prettier/prettier-eslint-cli/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."}