Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[explicit-member-accessibility]: add support for tslint member-access config options #214

Closed
Labels
@Hotell

Description

@Hotell

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=()=>{/*...*/}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp