antfu / case-police

🚨 Make the case correct, PLEASE!
MIT License
1.15k stars 80 forks source link

allow capitalize for word at the beginning of sentence #144

Open hardfist opened 1 year ago

hardfist commented 1 year ago

Describe the bug

some words like webpack allow using 'Webpack' at the beginning of sentence, is there a way to allow this?

Reproduction

https://stackblitz.com/edit/node-essghk?file=package.json

System Info

System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 114.20 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - ~/Library/Caches/fnm_multishells/89917_1677131463820/bin/node
    Yarn: 1.11.1 - ~/Library/Caches/fnm_multishells/89917_1677131463820/bin/yarn
    npm: 8.19.3 - ~/Library/Caches/fnm_multishells/89917_1677131463820/bin/npm
  Browsers:
    Chrome: 110.0.5481.100
    Firefox Developer Edition: 111.0
    Safari: 15.6.1

Used Package Manager

npm

Validations

antfu commented 1 year ago

The tool itself does not do any semantic checking, I guess this might be hard to do right. (I think webpack should be the one to blame). I don't have a solution for you, but probably an workaround is to disable it case-police --disable webpack