-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
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
namespace Foo {}
/**
* @deprecated
*/
export import Bar = Foo;ESLint Config
{
"rules": {
"@typescript-eslint/no-deprecated": "error"
}
}tsconfig
Expected Result
No error, this is the definition site at which Bar is marked deprecated.
Actual Result
Got the error "Bar is deprecated." despite this being the definition.
Additional Info
This regressed between 8.42.0 and 8.43.0. If I had to guess it broke in #11359. There did seem to be a number of good updates that caught other no-deprecated violations but the re-export isn't of a deprecated symbol so it doesn't seem like this case should be a violation.
JoshuaKGoldberg, ronami and mainframev
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
{}