Skip to content

Files

Latest commit

 

History

History
17 lines (11 loc) · 606 Bytes

no-missing-visibility-modifiers.md

File metadata and controls

17 lines (11 loc) · 606 Bytes

Pattern: Missing visibility modifier

Issue: -

Description

Deprecated - This rule is in the TSLint product as member-access.

Class members (both fields and methods) should have visibility modifiers specified. The Principle of Least Visibility guides us to prefer private methods and fields when possible. If a developer forgets to add a modifier then TypeScript assumes the element should be public, which is the wrong default choice.

Further Reading