Skip to content

Files

Latest commit

 

History

History
30 lines (22 loc) · 710 Bytes

deny-soft-private-modifier.md

File metadata and controls

30 lines (22 loc) · 710 Bytes

@rdlabo/rules/deny-soft-private-modifier

This plugin disallows the use of soft private modifier.

  • ✒️ The --fix option on the command line can automatically fix some of the problems reported by this rule.

Rule Details

Deny: Use Soft private modifier.

@Component({})
export class SigninPage {
  private platform = inject(Platform);
}

Allow: Use Hard private modifier.

@Component({})
export class SigninPage {
  #platform = inject(Platform);
}

Implementation