Add codespell support with configuration and fixes#21737
Open
yarikoptic wants to merge 4 commits intovitejs:mainfrom
Open
Add codespell support with configuration and fixes#21737yarikoptic wants to merge 4 commits intovitejs:mainfrom
yarikoptic wants to merge 4 commits intovitejs:mainfrom
Conversation
- Skip .npm and .cache directories (local caches) - Ignore URLs (to protect links like browsersl.ist) - Ignore camelCase/PascalCase identifiers (afterAll, isTs, thirdParty) - Add 'additionals' to ignore-words-list (variable name in html.ts) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Typos fixed: - udpate -> update (CHANGELOGs) - stablize -> stabilize (CHANGELOG) - ambigious -> ambiguous (CHANGELOG) - useable -> usable (CHANGELOG) - pre-emptively -> preemptively (rolldown.dts.config.ts comment) - re-uses -> reuses (fullBundleEnvironment.ts comment) - didnt -> didn't (js-sourcemap.spec.ts test message) Updated codespell config: - Added indentity to ignore-words-list (intentional in CHANGELOG entry describing a prior typo fix) 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.
Add codespell configuration and fix existing typos.
More about codespell: https://github.com/codespell-project/codespell
I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.
CI workflow has
permissionsset only toreadso also should be safe.Changes
Configuration & Infrastructure
.codespellrcconfiguration with comprehensive skip patterns.git*,*.svg,*-lock.yaml,*.css,.npm,.cacheFalse Positive Handling
https?://\S+) and camelCase/PascalCase identifiers (afterAll,isTs,thirdParty, etc.)additionals(variable name in html.ts),indentity(intentional in CHANGELOG entry describing a prior typo fix)Typo Fixes (8 fixes across 7 files)
udpate->update(2 CHANGELOGs)stablize->stabilize(CHANGELOG)ambigious->ambiguous(CHANGELOG)useable->usable(CHANGELOG)pre-emptively->preemptively(comment in rolldown.dts.config.ts)re-uses->reuses(comment in fullBundleEnvironment.ts)didnt->didn't(test message in js-sourcemap.spec.ts)All changes are in comments, CHANGELOGs, or test strings - no functional behavior changes.
Historical Context
This project has had 184 prior commits fixing typos manually, demonstrating the value of automated spell-checking.
Testing
Codespell passes with zero errors after all fixes.
Generated with Claude Code and love to typos free code.