|
| 1 | +# @pleaseai/code-style |
| 2 | + |
| 3 | +Monorepo providing shared code style configurations for PleaseAI projects. |
| 4 | + |
| 5 | +## Tech Stack |
| 6 | + |
| 7 | +- Package manager: bun (>=1.3.10) |
| 8 | +- Build orchestration: Turborepo |
| 9 | +- Module system: ESM only (`"type": "module"`) |
| 10 | +- Node: >=22.0.0 |
| 11 | +- TypeScript target: ES2022, moduleResolution: bundler |
| 12 | + |
| 13 | +## Packages |
| 14 | + |
| 15 | +| Package | Path | Build | |
| 16 | +|---------|------|-------| |
| 17 | +| `@pleaseai/eslint-config` | `packages/eslint-config` | tsdown | |
| 18 | +| `@pleaseai/prettier-config` | `packages/perttier-config` | none (JSON only) | |
| 19 | +| `@pleaseai/editorconfig` | `packages/editorconfig` | none (static file) | |
| 20 | + |
| 21 | +## Commands |
| 22 | + |
| 23 | +- `bun install` - Install dependencies |
| 24 | +- `bun run build` - Build all packages via Turborepo |
| 25 | +- `bun run lint` - Lint repo (dogfoods own eslint-config) |
| 26 | +- `bun run lint:fix` - Lint with auto-fix |
| 27 | + |
| 28 | +## Architecture |
| 29 | + |
| 30 | +- `packages/eslint-config` wraps `@antfu/eslint-config` with PleaseAI defaults (2-space indent, single quotes, no semi) |
| 31 | +- `packages/eslint-config/src/package-json.ts` exports `eslint-plugin-package-json` configs |
| 32 | +- Root `eslint.config.ts` dogfoods `@pleaseai/eslint-config` |
| 33 | + |
| 34 | +## Code Style |
| 35 | + |
| 36 | +- Follow @antfu/eslint-config conventions: no semicolons, single quotes, 2-space indent |
| 37 | +- ESM imports only, no CommonJS |
| 38 | + |
| 39 | +## Release |
| 40 | + |
| 41 | +- Uses release-please (Google) for automated versioning and changelogs |
| 42 | +- Config: `release-please-config.json` + `.release-please-manifest.json` |
| 43 | +- Publishing: GitHub Actions workflow publishes to npm on release |
| 44 | + |
| 45 | +## Gotchas |
| 46 | + |
| 47 | +- `packages/perttier-config` directory is intentionally(?) misspelled — do not rename without coordinating release-please config, CI workflows, and npm package name |
0 commit comments