Raket Prettier Config
raw JSON → 1.1.8 verified Sat May 09 auth: no javascript
Raket Prettier Config is a shareable configuration package for Prettier, the opinionated code formatter. It provides a preset set of formatting rules intended for use across Raket projects. Version 1.1.8 is the latest stable release. The package is simple to install as a dev dependency and reference in package.json. It offers a standardized formatting baseline, reducing configuration overhead. Unlike other Prettier configs that may extend or customize extensively, Raket Prettier Config is a fixed preset. It is released on npm with low cadence, primarily updated for compatibility with new Prettier versions.
Common errors
error Error: Invalid configuration file: "raket-prettier-config" is not a valid config file path. ↓
cause Referencing the config without having the package installed.
fix
Run: npm install --save-dev raket-prettier-config
error [error] Invalid configuration for "prettier" in package.json: Expected a valid config file path. ↓
cause Incorrect JSON syntax or extra characters in package.json.
fix
Ensure package.json has valid JSON: "prettier": "raket-prettier-config"
Warnings
gotcha The config is a fixed preset; it cannot be extended or overridden with other configs. ↓
fix If you need to customize, create your own prettier.config.js that imports and spreads the config.
gotcha Make sure you have Prettier installed separately as a dev dependency. ↓
fix Install Prettier: npm install --save-dev prettier
Install
npm install raket-prettier-config yarn add raket-prettier-config pnpm add raket-prettier-config Imports
- default config wrong
require('raket-prettier-config')correctIn package.json: "prettier": "raket-prettier-config"
Quickstart
// 1. Install as dev dependency
npm install --save-dev raket-prettier-config
// 2. Add to package.json
{
"prettier": "raket-prettier-config"
}
// 3. Format all files
npx prettier --write .