CLI tool wrapping the lintspaces library for checking whitespace, indentation, newlines, trailing spaces, and editorconfig compliance in text files. The current stable version is 1.0.0, released with lintspaces v0.12.0, reverting the default .editorconfig loading introduced in v0.8.0. It supports glob patterns, regex ignores, JSON output, and dotfile matching; designed for simple shell usage without a build system. Release cadence is infrequent, with major updates tied to lintspaces releases.
npm install lintspaces-cliVerified import paths — ran on the pinned version, not inferred.
Show how to use lintspaces-cli via npx to check JavaScript and CSS files for trailing spaces, newline at EOF, and 2-space indentation.
Add -e .editorconfig or specify the full path to your editorconfig file.
Update scripts to include -e .editorconfig if needed.
Always quote glob patterns: lintspaces -n -t "src/**/*.js"
Use --json in lowercase.
Ensure lintspaces is installed (npm install -g lintspaces-cli should pull it). If not, install lintspaces globally: npm install -g lintspaces
Use properly formatted regex: --regexignores '/\d+/'
Update to v0.7.1+ or ensure glob only matches files, not directories.
No dependency data recorded yet.