You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No error accessing private property with indexed access #26328
Activity
RyanCavanaugh commentedon Aug 9, 2018
This is an intended allowed bypass; see https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#413-property-access which outlines accessibility rules for
a.xbut nota["x"]ajafff commentedon Aug 28, 2018
I wrote a linter rule to check accessibility of element access the same way TypeScript checks property access: no-restricted-property-access
For a description on how to use it, see https://github.com/fimbullinter/wotan/blob/master/packages/wotan/README.md