@batoanng/prettier-config
A single formatting baseline for JavaScript and TypeScript repos in the workspace.
Quick install
npm install -D @batoanng/prettier-configPoint Prettier at the shared config
Reference the exported config and keep per-project overrides minimal.
Context
What It Covers
Share quote style, trailing comma rules, print width, and import ordering without repeating Prettier options package by package.
- Enforces 2 space indentation
- Uses single quotes and semicolons
- Consistent trailing commas (ES5)
- Sorts and groups imports using regex
✨ Features
- Enforces 2-space indentation
- Uses single quotes and semicolons
- Consistent trailing commas (ES5)
- Sorts and groups imports using regex
- Optimized for monorepos and frontend codebases
Setup
Installation
Bring the package into your project with the published npm entrypoint.
npm install -D @batoanng/prettier-config
📦 Installation
npm install -D prettier @batoanng/prettier-config
Start
Point Prettier at the shared config
Reference the exported config and keep per-project overrides minimal.
module.exports = require('@batoanng/prettier-config');
Surface
Exports And Entrypoints
Export surface
.->./index.js./package.json->./package.json
Entrypoints
- main:
index.js
Key files
index.jspackage.json
Integration
Integration Notes
Peer dependencies
prettier
Ops
Development Notes
Latest release snapshot
1.7.0
Minor Changes
- Bundle the import-sorting Prettier plugin through the shared config package and expose an explicit package export.
Source docs
Reference
The full README is rendered below so the package guide stays detailed and traceable to the source docs that live with the package itself.
A shareable Prettier configuration to ensure consistent code style across JavaScript/TypeScript projects.
✨ Features
- Enforces 2-space indentation
- Uses single quotes and semicolons
- Consistent trailing commas (ES5)
- Sorts and groups imports using regex
- Optimized for monorepos and frontend codebases
📦 Installation
npm install -D prettier @batoanng/prettier-config