cspell

A spell checker for source code and documentation files

brewmacoslinux
Try with needOr install directly
Source

About

Spell checker for code

Commands

cspell

Examples

Check spelling in a single file$ cspell check myfile.js
Check all files in a directory recursively$ cspell check src/
Check specific file types only$ cspell check --include '*.{js,md}' .