-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
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 A {
private readonly a = 1;
private readonly b = 2;
call() {
const { a, b } = this;
console.log(a, b);
}
}ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/no-unused-private-class-members": "error",
},
};tsconfig
Expected Result
No error
Actual Result
Private class member 'a' is defined but never used. 2:20 - 2:21
Private class member 'b' is defined but never used. 3:20 - 3:21
Additional Info
eslint@9.39.1
typescript-eslint@8.47.0
bradzacher, kirkwaiblinger, JavaScriptBach, christopher-buss and andreww2012
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
{ "compilerOptions": { "strict": true } }