chore: add pre-commit hooks and enforce formatting - #10
Merged
Conversation
18 source files and 10 test/root files had formatting drift. Running Prettier across the entire codebase to establish a clean baseline before adding pre-commit hooks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add .pre-commit-config.yaml with trailing-whitespace, end-of-file-fixer, check-yaml, check-json, check-merge-conflict, ESLint (src/ only), and Prettier (excluding build output and lockfile) - Remove broken husky v4 config from package.json - Add lint + format CI job to ci.yaml - Add dist-types/ to .gitignore (build artifacts were untracked) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Trailing whitespace, EOF fixes, and Prettier formatting applied to non-source files: configs (eslintrc, babel, rollup, tsconfig, jest), docs (README, CHANGELOG, WHATS_FUEL), deployment files, and test fixtures. Establishes a clean baseline for the new pre-commit hooks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.pre-commit-config.yamlwith trailing-whitespace, end-of-file-fixer, check-yaml, check-json, check-merge-conflict, ESLint (scoped tosrc/), and Prettier (all file types, excluding build output)package.jsondist-types/to.gitignore(build artifacts were untracked)Notes
src/only (matching existingnpm run lintbehavior) — root-level scripts (monitor.ts, etc.) legitimately useconsole.logmain(unrelated to this PR)src/without PrettierTest plan
pre-commit run --all-filespasses all 7 hooksnpm testshows same results asmain(52 passed, 5 pre-existing failures)Closes #9
🤖 Generated with Claude Code