@yokailabs/prettier-config
v0.0.1
Published
Shared Prettier configuration for Yokai Labs projects to ensure consistent code style across applications.
Readme
@yokailabs/prettier-config
Shared Prettier configuration for Yokai Labs projects.
Purpose
The goal of this package is consistency across all our applications, not strict adherence to any particular style guide. We are not “married” to these specific rules — they simply provide a common baseline so that code looks and feels the same across projects. This helps reduce friction when switching between repos or collaborating with others.
⚠️ Note: Using this package is not an endorsement of any specific Prettier rule. The real value is shared consistency.
Features
- Consistent code style across Yokai Labs projects
- Inline ignore patterns for common build artifacts (
dist/,build/,coverage/,node_modules/) - Opinionated but flexible: change rules here once, and they apply everywhere
Installation
npm i -D @yokailabs/prettier-config prettierUsage
In your project’s package.json, add:
{
"prettier": "@yokailabs/prettier-config"
}Examples
# Format all files
npx prettier . --write
# Check formatting (CI use case)
npx prettier . --checkDevelopment
For local development check out the repository in your workspace and from your project's root folder run:
npm i -D file:~/your-workplace-path/yokailabs-configs/packages/prettier-configReleasing
See CHANGELOG.md for release instructions and version history.
