Loading repository data…
Loading repository data…
Bluebird2000 / repository
Typo Checker is a custom Node.js CLI utility designed to automatically detect spelling errors in JavaScript, TypeScript, JSX, and TSX source code. It parses code files using an AST parser (@typescript-eslint/typescript-estree), extracts string literals, and validates them using the nspell spellchecker powered by the dictionary-en English dictionary
A powerful command-line tool and library to find typos in your JavaScript, TypeScript, JSX, and TSX source code files by analyzing string literals using AST parsing and spell-checking with nspell.
@typescript-eslint/typescript-estree) to precisely locate strings and their line numbers.nspell with English dictionary for spell checking.npm install typo-checker
OR with yarn
yarn add typo-checker
In your project’s package.json, add:
"scripts": {
"typo-checker": "typo-checker"
}
You can customize the whitelist of allowed words (to reduce false positives) by creating a typo-checker.config.json in your project root:
{
"whitelist": [
"React",
"Redux",
"NodeJS",
"GraphQL",
"uuid",
"TSConfig"
]
}
Alternatively, add it inside your package.json:
{
"typoChecker": {
"whitelist": [
"React",
"Redux",
"NodeJS"
]
}
}
If no typos are found:
fast-glob, chalk, cli-table3, nspell, dictionary-en, @typescript-eslint/typescript-estree natural.Feel free to open issues or PRs for new utility suggestions or improvements.
MIT