A CLI tool to verify that all source files match Prettier code style, designed for CI integration. Current stable version is 1.0.3. The tool reads a 'checkFiles' pattern from package.json and checks formatting, exiting with non-zero if violations are found. It differs from alternatives by requiring Prettier installed separately and using a config key in package.json. Use it in pre-commit hooks or CI pipelines to enforce consistent code formatting. The package is authored by the same developer as other frontend tools and is under active maintenance.
npm install check-prettierVerified import paths — ran on the pinned version, not inferred.
Installs dependencies, configures file patterns in package.json, and runs the CLI to check formatting.
Ensure 'prettier' is in your devDependencies.
Add a 'checkFiles' array to package.json with glob patterns.
Run 'npm install --save-dev prettier' to install it.
Update the patterns in package.json to match your source files.