dprint / dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.
https://dprint.dev/plugins/typescript
MIT License
248 stars 50 forks source link

`semiColons` should be spelled `semicolons` because it's a single word. #623

Open lixiaoyan opened 2 months ago

lixiaoyan commented 2 months ago

https://en.wikipedia.org/wiki/Semicolon https://prettier.io/docs/en/options#semicolons

semicolons (10k+) vs semiColons (553) in sourcegraph

lixiaoyan commented 2 months ago

https://sourcegraph.com/search?q=context:global+semiColons+-file:dprint+-file:deno+-repo:dprint+-repo:dprint&patternType=keyword&case=yes&sm=0 ...and most of them are related to dprint

dsherret commented 2 months ago

Semicolon is alternatively spelt as semi-colon so that's where the casing comes from. That said, it might be good to change this to align with prettier.

lixiaoyan commented 2 months ago

https://stackoverflow.com/a/58756613

For example: submenu/sub-menu -> submenu in camel case rerender/re-render -> rerender in camel case coclient/co-client -> coclient in camel case