--- ruleName: member-access description: Requires explicit visibility declarations for class members. rationale: Explicit visibility declarations can make code more readable and accessible for those new to TS. optionsDescription: |- Two arguments may be optionally provided: * `"check-accessor"` enforces explicit visibility on get/set accessors (can only be public) * `"check-constructor"` enforces explicit visibility on constructors (can only be public) options: type: array items: type: string enum: - check-accessor - check-constructor minLength: 0 maxLength: 2 optionExamples: - 'true' - '[true, "check-accessor"]' type: typescript optionsJSON: |- { "type": "array", "items": { "type": "string", "enum": [ "check-accessor", "check-constructor" ] }, "minLength": 0, "maxLength": 2 } layout: rule title: 'Rule: member-access' ---