chore: add prettier as explicit devDependency and standardize usage#246
chore: add prettier as explicit devDependency and standardize usage#246
Conversation
Add prettier@^3.4.2 as a devDependency to resolve knip warning about unlisted binary. The package is used by format scripts in package.json and CI workflows but was previously relying on npx auto-download. Fixes #225 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update format scripts to use prettier directly (not npx) - Expand format scope to include *.json and *.md files - Update CI workflow to use npm run format:check - Update ci-failure-analysis to use npm run format - Update documentation to reference npm run format:check - Update greet.yml and claude-pr-review.yml This standardizes how prettier is invoked across the project, matching the pattern used for other tools like eslint and tsc. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
@claude Review this pull request for the cc-plugin-eval TypeScript evaluation framework. |
|
Claude finished @sjnims's task in 1m 57s —— View job Code Review Complete ✅Reviewing PR #246: chore: add prettier as explicit devDependency and standardize usage Tasks
Verdict: ✅ Looks GoodThis PR successfully addresses issue #225 by adding prettier as an explicit devDependency and standardizing its usage across the project. Quality Checks✅ TypeScript: No errors What's Good1. Problem-Solution Alignment
2. Comprehensive Coverage
3. Workflow Updates
4. Documentation Consistency
5. Technical Quality
ObservationsEnhanced Scope (Positive) Minor Version Update Workflow Permissions SuggestionsNone. This PR is well-executed and ready to merge. Review Criteria AssessmentTypeScript Quality: ✅ N/A (configuration change only) |
Description
Add prettier@^3.4.2 as a devDependency and standardize how it's invoked across the project. This resolves the knip "unlisted binary" warning and aligns prettier usage with other tools like eslint and tsc.
Type of Change
Component(s) Affected
Other
config.yaml,eslint.config.js,tsconfig.json, etc.)CLAUDE.md,README.md).github/)Motivation and Context
knip's dead code analysis identified
prettieras an "unlisted binary" - it was used in npm scripts and CI workflows but relied onnpxto download it on-demand. This created:Fixes #225
How Has This Been Tested?
Test Configuration:
Test Steps:
npm install- verified package-lock.json updates correctlynpm run lint- passesnpm run format:check- passes (now uses local prettier, expanded glob)npm run typecheck- passesnpm test- all 1340 tests passnpx knip | grep prettier- no longer reports prettier as unlistedmarkdownlint CLAUDE.md CONTRIBUTING.md- passesuvx yamllinton all modified workflows - passesactionlinton all modified workflows - passesChecklist
General
Documentation
Linting
npm run lintand fixed all issuesnpm run format:checkmarkdownlint "*.md"on Markdown filesuvx yamllint -c .yamllint.ymlon YAML files (if modified)actionlinton workflow files (if modified)Testing
npm testand all tests passSummary of Changes
package.jsonprettierdirectly with expanded glob (*.json,*.md)package-lock.json.github/workflows/ci.ymlnpm run format:checkinstead ofnpx prettier.github/workflows/ci-failure-analysis.ymlnpm run formatin fix instructions.github/workflows/claude-pr-review.yml.github/workflows/greet.ymlnpm run format:checkCLAUDE.mdnpm run format:checkCONTRIBUTING.mdnpm run format:check.github/pull_request_template.mdAdditional Notes
This approach matches how other tools are used in the project:
eslintis a devDependency, scripts useeslintdirectlytypescriptis a devDependency, scripts usetscdirectlyvitestis a devDependency, scripts usevitestdirectlyNow prettier follows the same pattern.
🤖 Generated with Claude Code