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