{"id":18496,"library":"lintspaces-cli","title":"lintspaces-cli","description":"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.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/evanshortiss/lintspaces-cli","tags":["javascript","lintspaces","node-lintspaces","cli"],"install":[{"cmd":"npm install lintspaces-cli","lang":"bash","label":"npm"},{"cmd":"yarn add lintspaces-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add lintspaces-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a CLI tool, not a library; no programmatic API is exported.","symbol":"lintspaces command","correct":"Run via npx lintspaces or globally installed lintspaces"}],"quickstart":{"code":"npx lintspaces -n -t -d spaces -s 2 src/**/*.js src/**/*.css","lang":"javascript","description":"Show how to use lintspaces-cli via npx to check JavaScript and CSS files for trailing spaces, newline at EOF, and 2-space indentation."},"warnings":[{"fix":"Add -e .editorconfig or specify the full path to your editorconfig file.","message":"v1.0.0 no longer automatically loads .editorconfig from the current working directory; use -e explicitly if needed.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Update scripts to include -e .editorconfig if needed.","message":"v0.8.0 introduced automatic .editorconfig loading, but this was reverted in v1.0.0. Relying on the old behavior will break on upgrade.","severity":"deprecated","affected_versions":"0.8.0 - 0.8.0"},{"fix":"Always quote glob patterns: lintspaces -n -t \"src/**/*.js\"","message":"Glob patterns must be quoted on Unix shells to prevent expansion before being passed to the CLI. E.g., use \"src/**/*.js\" without quotes may not work.","severity":"gotcha","affected_versions":"*"},{"fix":"Use --json in lowercase.","message":"Options are normalized to lowercase, so --JSON is invalid. Use --json exactly.","severity":"gotcha","affected_versions":">=0.7.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure lintspaces is installed (npm install -g lintspaces-cli should pull it). If not, install lintspaces globally: npm install -g lintspaces","cause":"Global install of lintspaces-cli doesn't include lintspaces as a dependency?","error":"Error: Cannot find module 'lintspaces'"},{"fix":"Use properly formatted regex: --regexignores '/\\d+/' ","cause":"Passed --regexignores without properly quoting the regex pattern.","error":"Invalid regular expression: /[object Object]/: invalid group"},{"fix":"Update to v0.7.1+ or ensure glob only matches files, not directories.","cause":"The glob pattern didn't match any files or matched a directory.","error":"is not a file","affected_versions":"<0.7.1"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}