errorPrefer `{{replacement}}` over `{{name}}`.small-rules/consistent-compound-wordsEnforce consistent spelling of compound words in identifiers.
A lot of words that used to be two words are one word now: callback, database, timeout, username.
When half a codebase writes timeOut and the other half writes timeout, a search for one misses the
other, and autocomplete offers you both. This picks the closed spelling and sticks to it.
By default it only checks the names you declare: variables, functions, classes, and parameters. Property
names often come from someone else’s API, so checkProperties and checkShorthandProperties are off until
you turn them on. Add your own pairs with replacements.
errorPrefer `{{replacement}}` over `{{name}}`.renameRename to `{{replacement}}`.This rule accepts one options object after the severity.
const passWord = 'secret';const password = 'secret';