complete/no-private-identifiers
💼 This rule is enabled in the ✅ recommended config.
📝 Disallows # private members in favor of the TypeScript private modifier.
Rule Details
Section titled “Rule Details”For TypeScript projects, using private instead of # is superior in a few
ways.
This blog
goes into more detail.
// Badclass Foo { #value = 1;
#getValue() { return this.#value; }}
// Goodclass Foo { private value = 1;
private getValue() { return this.value; }}Options
Section titled “Options”This rule is not configurable.
