MetaMask / MetaMask/core

Add ESLint rule to disallow the use of the `private` keyword

Open
#6,313 1 comment 0 reactions 0 assignees View on GitHub
team-core-platform team-wallet-framework wf-lint-fixes
Dominant language
TypeScript
Stars
413
Forks
308
Avg merge
1d 4h
Merged PRs (30d)
253

Description

New contributors sometimes use TypeScript's `private` keyword instead of private fields. We should disallow this so we don't have to remind them.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the repository's ESLint configuration and existing custom-rule entry points, then read how TypeScript syntax is handled. Add the rule requested in the issue and verify that linting rejects the TypeScript private keyword while supporting private fields. Confirm the relevant lint checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, typescript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.