Registry / devops / prettier-es5

prettier-es5

JSON →
library0.0.4jsnpmunverified

A shared Prettier configuration that enforces trailing commas where valid in ES5 (trailingComma: 'es5'), tab width of 4, no semicolons, and single quotes. Current version is 0.0.4. This package is a lightweight config preset requiring no JavaScript logic—just a JSON object. It simplifies consistent Prettier setup across projects by extending the 'prettier' key in package.json. Alternative to eslint-config-prettier or manual .prettierrc files when only these four rules are needed.

npm install prettier-es5
INSTALL
IMPORT
SIG · PRETTIER-ES5
P
prettier-es5
devopsjavascriptv0.0.4
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.

default config object
// Reference via package.json "prettier": "prettier-es5"
import config from 'prettier-es5'
This is a config package meant to be used via the 'prettier' key in package.json. No direct import is needed.
.prettierrc.js export
module.exports = require('prettier-es5');
export default require('prettier-es5');
CommonJS pattern for a .prettierrc.js file. ESM not supported.
.prettierrc.yaml
prettier-es5
prettier: prettier-es5
In YAML, just the string value. Not an object.

Shows installation and usage of prettier-es5 as a Prettier config preset via package.json.

// 1. Install // npm i -D prettier-es5 // 2. Add to package.json // { // "prettier": "prettier-es5" // } // 3. Run Prettier // npx prettier --write .
Debug
Known issues
gotchaThe config sets no semicolons (semi: false). This may conflict with team style preferences and is not customizable via this preset.
fix
Override in local .prettierrc or use a different config.
affects: >=0.0.0
gotchaConfig uses tabWidth: 4, which is non-standard for many projects. May cause inconsistent formatting if other tools expect 2 spaces.
fix
Set tabWidth manually in project .prettierrc after referencing this config.
affects: >=0.0.0
deprecatedThe package is very low maintenance and has not been updated since original release. Relies on Prettier default behavior; may not reflect latest Prettier options.
fix
Consider using official 'prettier' config or create a local .prettierrc.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'prettier-es5'
Package not installed or not in node_modules.
fix
Run 'npm install -D prettier-es5' or add to devDependencies.
Invalid configuration file: [path] - "prettier" should be a string, an object, or a function.
Incorrectly placed the 'prettier' key inside another object (e.g., inside scripts).
fix
Ensure 'prettier' is at the top-level of package.json, not nested.
Prettier config is not loading the shared config: No config found for 'prettier-es5'
The 'prettier' key may be set incorrectly, or the config is not resolved.
fix
Double-check the spelling: "prettier": "prettier-es5" (string, not object).
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

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