Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
class Test {
private _x = 1;
#y = 1;
get x() { return this._x; }
get y() { return this.#y; }
}
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/prefer-readonly": "error"
},
};
tsconfig
Expected Result
Triggers on private field
and #field
class fields.
Actual Result
Triggers on private field
but not on #field
class fields.
Additional Info
No response