grouped-accessor-pairs
UnreleasedConfiguration
rslint.config.ts
Rule Details
This rule requires getter and setter definitions for the same property to be adjacent in object literals and classes. It can also enforce whether the getter or setter appears first and, when configured, checks TypeScript interface and type-literal accessors.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Examples of incorrect code for this rule with "getBeforeSet":
Examples of incorrect TypeScript code when type accessors are enforced: