npm.io
2.2.2 • Published 3 years agoCLI

@jills-office/code-health

Licence
MIT
Version
2.2.2
Deps
3
Size
18 kB
Vulns
0
Weekly
0

jills-office-code-health

Formatting, linting, static analysis, etc.

Currently implemented commands

format

Command: health format

Formats code through Prettier. Check formatting using the standard Prettier CLI flag --check.

Config files are .prettierrc.js and .prettierignore.

lint

Command: health lint

Lints code through ESLint.

Config files are .eslintrc.js and .eslintignore.

spellcheck

Command: health spellcheck

Spellchecks code through CSpell.

Config file is cspell.config.js.

Examples
# format all code
npx health format

# check formatting for all code
npx health format --check

# only run formatting for a specific file
npx health format ./src/my-file.ts