Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
TSlintmember-access supports following config:
- "no-public" forbids public accessibility to be specified, because this is the default.
- "check-accessor" enforces explicit visibility on get/set accessors
- "check-constructor" enforces explicit visibility on constructors
- "check-parameter-property" enforces explicit visibility on parameter properties
Currently this rule follows only all or nothing rule. It would be nice to implement at leastno-public
config to prevent devs to usepublic
which is a default in TS.
Repro
{"rules": {"@typescript-eslint/explicit-member-accessibility": ["error","no-public"] }}
classTest{// Expect lint errorpublicrender(){return`<div>Hello</div>`}privatehandleClick=()=>{/*...*/}}