Registry / testing / prettylint

prettylint

JSON →
library2.0.0jsnpmunverified

Run Prettier as a linter, providing eslint-style output for Prettier formatting errors. Version 2.0.0 requires Node >=16 and Prettier ^3.0.0 as a peer dependency. Lightweight alternative to eslint-plugin-prettier with no ESLint integration needed; outputs warnings in a familiar format. Minimal configuration: works out of the box with default Prettier config or custom config files.

npm install prettylint
INSTALL
IMPORT
SIG · PRETTYLINT
P
prettylint
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

prettylint
npx prettylint "**/*.ts"
prettylint "**/*.ts" (if not installed globally)
CLI tool, not a library; use via npx or global install.

Run prettylint on all TypeScript files in the project, auto-fixing issues.

npx prettylint "**/*.ts" --fix # or install locally: npm install --save-dev prettylint prettier npx prettylint .
prettylint --version
Debug
Known issues
breakingVersion 2.0.0 requires Prettier ^3.0.0; previous versions used Prettier 2.x.
fix
Update Prettier to ^3.0.0.
affects: >=2.0.0
breakingVersion 2.0.0 requires Node.js >=16.
fix
Upgrade Node.js to 16 or later.
affects: >=2.0.0
gotchaPrettylint does not use .eslintrc; it uses Prettier's config resolution (.prettierrc or prettier key in package.json).
fix
Ensure Prettier configuration is present, or use --config to specify a file.
affects: *
gotchaThe --ignore-path flag defaults to ['.gitignore', '.prettierignore']; only one file can be passed explicitly (not an array).
fix
To use a custom ignore file, specify only one path: --ignore-path .myignore.
affects: *
gotchaOutput format defaults to 'eslint-formatter-pretty', which may not be installed automatically.
fix
npm install --save-dev eslint-formatter-pretty or use --format <other>.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'prettier'
Missing peer dependency prettier.
fix
npm install --save-dev prettier
Error: Requires prettier ^3.0.0
Prettier version is too old (<3.0.0).
fix
npm install prettier@latest --save-dev
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array
Passing multiple --ignore-path values (e.g., --ignore-path .gitignore .prettierignore) treats second argument as file pattern.
fix
Specify only one ignore file: --ignore-path .gitignore
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
prettierrequiredPeer dependency: uses Prettier to parse and format code.
Agent activity
8 hits · last 30 days
node
8
Resources
prettylint — npm install prettylint · libregistry