Registry / devops / prettier-max

prettier-max

JSON →
library1.16.0jsnpmunverified

Minimalist Vite plugin that auto-formats code with Prettier and optionally runs TypeScript type checking on build, including deprecation and default import detection. Current stable version: 1.16.0. Release cadence: active, with regular updates. Key differentiators: no ESLint configuration, relies on .prettierrc and tsconfig.json for consistency, simple API, and fail-on-error behavior by default. Requires peer dependencies: prettier >=3.6.0, typescript >=5.0.0 <7.0.0, vite >=5.0.0. Ships TypeScript types.

npm install prettier-max
INSTALL
IMPORT
SIG · PRETTIER-MAX
P
prettier-max
devopsjavascriptv1.16.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

prettierMax
✓ import prettierMax from 'prettier-max'
✗ const prettierMax = require('prettier-max')
ESM-only; plugin is a default export.
PluginOptions
✓ import type { PluginOptions } from 'prettier-max'
TypeScript only; not available in JS.
PrettierMaxPlugin
✓ import type { PrettierMaxPlugin } from 'prettier-max'
✗ import { PrettierMaxPlugin } from 'prettier-max'
Type export only; do not use as value.

Basic Vite configuration using prettier-max with default settings.

import { defineConfig } from 'vite'; import prettierMax from 'prettier-max'; export default defineConfig({ plugins: [ prettierMax() ] });
Debug
Known issues
gotchaPlugin requires Vite >=5.0.0, Prettier >=3.6.0, and TypeScript >=5.0.0 <7.0.0. Using older versions may cause runtime errors.
fix
Upgrade to supported versions: vite@^5, prettier@^3.6, typescript@^5.0.
affects: <5.0.0 (Vite) or <3.6.0 (Prettier) or <5.0.0 (TypeScript)
gotchaTypeScript validation runs only if TypeScript is installed. If not, validation is silently skipped and a warning is logged.
fix
Install TypeScript or disable with the `typescript: false` option.
affects: all
gotchaBy default, `failOnError` is true, meaning any formatting or type error stops the build. Set to false to continue on errors.
fix
Use `prettierMax({ failOnError: false })`.
affects: all
breakingBreaking change in v1.16.0: The plugin is now ESM-only. CommonJS require() no longer works.
fix
Use `import` syntax instead of `require()`. If you must use CJS, stick to v1.15.x.
affects: >=1.16.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier'
Missing peer dependency 'prettier'.
fix
npm install -D prettier
Error: The plugin 'prettier-max' requires a Vite version >=5.0.0
Vite version is too old.
fix
Upgrade vite to >=5.0.0
Error: The plugin 'prettier-max' requires a TypeScript version >=5.0.0 and <7.0.0
TypeScript version is out of range.
fix
Install matching TypeScript version (>=5.0.0 <7.0.0)
TypeError: prettierMax is not a function
Incorrect import syntax (e.g., using named import instead of default).
fix
Use `import prettierMax from 'prettier-max'`
Upgrade
Version history
1.16.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
prettier-max — npm install prettier-max · libregistry