fix-my-typos
v1.0.0-beta.1
Published
Catch typos in your code before committing
Maintainers
Readme
Fix My Typos
Catch typos before committing.
Install
npm install --save-dev fix-my-typosDone. Hook installs automatically.
Usage
Automatic (Pre-commit Hook)
Just commit. Files are checked automatically.
echo 'This is a coment' > test.txt
git add test.txt
git commit -m "add file"Manual Run
Check staged files on-demand:
npx fix-my-typos⚠️ Found 1 issue(s):
test.txt:
1. Line 1: Possible spelling mistake found.
→ commentConfig
Optional. Create .fixmytyposrc:
{
"mode": "warn"
}Options:
mode:"warn"(default) or"block"enabled:trueorfalseignoreFiles:["*.min.js", "dist/**"]
Examples
Block commits:
{ "mode": "block" }Ignore files:
{
"ignoreFiles": ["dist/**", "*.generated.ts"]
}Skip Once
git commit --no-verifyHow It Works
Checks all staged files with LanguageTool. Free, no API key needed.
License
MIT
