notVerb'{{name}}' should begin with a verb, but '{{prefix}}' is not one.small-rules/starts-with-verbRequire function and method names to begin with a verb.
A function does something, so its name should say what. getUserProfile() reads as an action at the call
site; userProfile() reads like a value, and you have to check whether it’s one.
It leaves names with no lowercase prefix alone, such as UserProfile components. It also backs off where
you don’t get to pick the name: override members, getters and setters, constructors, computed keys, and
keys of an object whose shape comes from elsewhere. That covers objects passed straight into a call or
new, checked with satisfies, or annotated with an imported type. Add your own words with allowList,
and exclude words with denyList.
notVerb'{{name}}' should begin with a verb, but '{{prefix}}' is not one.This rule accepts one options object after the severity.
function userProfile(id: string): string { return id;}function getUserProfile(id: string): string { return id;}