-
Notifications
You must be signed in to change notification settings - Fork 3
chore: add typo check #254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
commit: |
- Add typos check to pre-push hook to catch spelling errors before pushing - Explicitly specify typos.toml configuration file - Runs after staged changes but before knip linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds automated typo checking to the codebase using the typos tool, standardizing spelling from British English to American English conventions throughout the project.
- Introduces typo checking via the
typostool with configuration intypos.toml - Standardizes spelling: "normalise" → "normalize", "initialise" → "initialize", "serialisation" → "serialization", "behaviour" → "behavior", "optimised" → "optimized", "favour" → "favor"
- Integrates typo checking into CI pipeline and pre-push git hooks
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
typos.toml |
Adds configuration for the typos checker with US English locale and file exclusions |
lefthook.yaml |
Adds typo checking as a pre-push git hook |
flake.nix |
Adds typos and typos-lsp packages to the development environment |
.github/workflows/ci.yaml |
Restructures CI jobs and adds dedicated typo checking job |
src/toolsets.ts |
Renames normaliseHeaders to normalizeHeaders and updates comment spelling |
src/toolsets.test.ts |
Updates test descriptions and comments from British to American English |
src/requestBuilder.ts |
Updates comment spelling from "serialisation" to "serialization" |
src/requestBuilder.test.ts |
Updates comment spelling from "behaviour" to "behavior" and "serialisation" to "serialization" |
src/headers.ts |
Renames function and updates JSDoc from British to American English |
src/headers.test.ts |
Updates all function calls and test descriptions to use American English |
src/consts.ts |
Updates comment spelling from British to American English |
examples/*.ts |
Updates comments from "Initialise" to "Initialize" across all example files |
README.md |
Updates comment in code example from "Initialise" to "Initialize" |
CHANGELOG.md |
Reformats bullet lists and corrects spelling inconsistencies in historical entries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 23 files
Add CHANGELOG.md to oxlint ignorePatterns to prevent linting errors. The changelog is auto-generated and should not be linted alongside application code. It was already excluded from oxfmt.
b038964 to
43f07db
Compare
Revert changelog formatting from dash bullets to asterisk bullets, and restore blank lines after section headers. This aligns with the canonical format maintained on the main branch.
43f07db to
5e16ec6
Compare
StuBehan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary by cubic
Add automated typo checking (US English) and split CI into parallel jobs to catch spelling errors early and speed up pipelines. Also standardized spelling across docs, examples, tests, and internal code.
CI/Tooling
Refactors
Written for commit c437ee3. Summary will update automatically on new commits.