prettier-pack
raw JSON → 0.0.14 verified Sat Apr 25 auth: no javascript
A bundled package that includes Prettier, ESLint, Husky, lint-staged, Flow, and React-related ESLint plugins (babel-eslint, eslint-config-prettier, eslint-plugin-babel, eslint-plugin-flowtype, eslint-plugin-import, eslint-plugin-prettier, eslint-plugin-react, flow-bin, flow-webpack-plugin) for quick setup of code formatting and linting. Version 0.0.14 is the latest, with infrequent releases. The package is opinionated and monolithic, bundling many dependencies together, which can lead to version conflicts and bloat. It is intended for novice users who want a one-command setup, but is not actively maintained and lacks flexibility compared to using the individual tools directly.
Common errors
error Cannot find module 'eslint-config-prettier-pack' ↓
cause ESLint config name is incorrect; should be 'prettier-pack' without 'eslint-config-'.
fix
Use 'extends': ['prettier-pack'] in .eslintrc
error Error: Could not resolve 'babel-eslint' ↓
cause The package bundles babel-eslint but it may not be installed as a top-level dependency.
fix
Install babel-eslint separately or ensure prettier-pack is hoisted correctly.
Warnings
deprecated Package bundles many dependencies with fixed versions, leading to potential version conflicts. ↓
fix Install individual tools (Prettier, ESLint, etc.) separately and manage versions yourself.
gotcha The package does not provide a default Prettier config; users must create their own .prettierrc. ↓
fix Create .prettierrc file in your project root with desired options.
gotcha ESLint config 'prettier-pack' may not include all necessary rules for your project. ↓
fix Extend the config and override rules as needed.
gotcha The package includes flow-bin and flow-webpack-plugin, which may not be needed if not using Flow. ↓
fix Consider removing Flow-related dependencies if not used.
Install
npm install prettier-pack yarn add prettier-pack pnpm add prettier-pack Imports
- prettier-pack wrong
npm install prettier-pack --savecorrectnpm install prettier-pack --save-dev - .prettierrc wrong
No standard config file provided; user must create their own.correctmodule.exports = { semi: false, singleQuote: true } - ESLint config wrong
extends: ['prettier']correctextends: ['prettier-pack']
Quickstart
// 1. Install the package
npm install --save-dev prettier-pack
// 2. Create .prettierrc (example)
{
"semi": false,
"singleQuote": true
}
// 3. Extend ESLint config in .eslintrc
{
"extends": ["prettier-pack"],
"rules": {}
}
// 4. Add lint-staged to package.json
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
// 5. Run npx prettier-check . to verify formatting