Enhancement: [prefer-readonly] check #private class fields #7126
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.9.3&sourceType=module&showAST=es&code=MYGwhgzhAEAqCmEAu0DeBYAUNaAHATgJYBuYS80A+gB7QC80AjANxY4DEAnvU65m9ADm8FNQAUASjTR8IgK74AdtCQALQhAB0NZtAC+A4Sk6TpspAuVqNmrroOY9QA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Y6RAM0Wls4CGAEwD2TeIXRRe0EdEjgwAXxBKgA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
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
The text was updated successfully, but these errors were encountered: