@yokailabs/prettier-config
v0.0.3
Published
Shared Prettier configuration for Yokai Labs projects to ensure consistent code style across applications.
Downloads
238
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
- 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
Releases are managed from the monorepo root with Changesets: run npm run changeset to record a change, then npm run release to version and publish. See CHANGELOG.md for version history.
