webfansplz / case-police

Make the case correct, PLEASE!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CasePolice

NPM version

  • TypeScript, not Typescript
  • GitHub, not Github
  • VS Code, not Vscode
  • ...

Make the case correct, PLEASE!

Usage

Make sure you have committed all unsaved works, and then

npx case-police --fix

It will scan all your source files and fix the cases of known names.

Only the word including both uppercase and lowercase will be fixed. (e.g. Github -> GitHub; github and GITHUB will be left untouched).

Using in CI

Simply add case-police (without --fix) to your workflow and it will exit with a non-zero code for your CI to catch it.

Sponsors

License

MIT License © 2021 Anthony Fu

About

Make the case correct, PLEASE!

License:MIT License


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%