Registry / devops / prettier-config

prettier-config

JSON →
library1.0.0jsnpmunverified

Read Prettier options from a `.prettieropts` file and pass them to the `prettier` binary. Version 1.0.0. Very minimal package, appears to be experimental or forked from a gist, no regular release cadence. Depends on `prettier` being installed. Simpler than `@prettier/plugin-x` but limited to npm scripts.

npm install prettier-config
INSTALL
IMPORT
SIG · PRETTIER-CONFIG
P
prettier-config
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-config
✓ npx prettier-config "lib/**/*.js"
✗ prettier-config "*.js"
Used via CLI in npm scripts, not as a programmatic API. Ensure prettier is installed.

Configure npm scripts to use prettier-config to format JavaScript files with options from .prettieropts.

{ "scripts": { "format": "prettier-config \"src/**/*.js\"", "check": "prettier-config --list-different \"src/**/*.js\"" } }
Debug
Known issues
gotchaOnly works when used inside a script inside package.json due to reliance on npx for prettier binary.
fix
Use via npm scripts or run with npx.
affects: >=1.0.0
deprecatedPackage is a gist copy, unmaintained since 2019. No releases beyond 1.0.0.
fix
Consider using official prettier with --config option or eslint-config-prettier.
affects: >=1.0.0
Errors
Common errors & fixes
prettier-config: command not found
Package not installed or npx not available.
fix
Install prettier-config locally: npm install --save-dev prettier-config
Cannot find module 'prettier'
Prettier not installed as a dependency.
fix
Install prettier: npm install --save-dev prettier
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
prettierrequiredrequires prettier to be installed as a peer dependency
Agent activity
2 hits · last 30 days
node
2
Resources
prettier-config — npm install prettier-config · libregistry