You have a bunch of files that you want to format using prettier-eslint. But prettier-eslint can only operate on strings. 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. By default prettier-eslint will simply log the formatted version to the terminal. If you want to overwrite the file itself (a common use-case) then add --write. You should quote your globs, otherwise your terminal will expand the glob before it gets to prettier-eslint.
Features
- Any linter that support ESLint CLIEngine interface can be integrate with prettier-eslint
- CLI Options
- This is a CLI that allows you to use prettier-eslint on one or multiple files
- Typically you'll use this in your npm scripts (or package scripts)
- Instead of printing the formatted version of the files to the terminal, prettier-eslint will log the name of the files that are different from the expected formatting
- Resolve eslint config file, parse and forward config object as the eslintConfig option to prettier-eslint
Categories
Code FormattersLicense
MIT LicenseFollow prettier-eslint-cli
Other Useful Business Software
Turn traffic into pipeline and prospects into customers
Docket is an AI-powered sales enablement platform designed to unify go-to-market (GTM) data through its proprietary Sales Knowledge Lake™ and activate it with intelligent AI agents. The platform helps marketing teams increase pipeline generation by 15% by engaging website visitors in human-like conversations and qualifying leads. For sales teams, Docket improves seller efficiency by 33% by providing instant product knowledge, retrieving collateral, and creating personalized documents. Built for GTM teams, Docket integrates with over 100 tools across the revenue tech stack and offers enterprise-grade security with SOC 2 Type II, GDPR, and ISO 27001 compliance. Customers report improved win rates, shorter sales cycles, and dramatically reduced response times. Docket’s scalable, accurate, and fast AI agents deliver reliable answers with confidence scores, empowering teams to close deals faster.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of prettier-eslint-cli!