-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 working
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.
Relevant Package
@typescript-eslint/type-utils
Playground Link
Repro Code
// test.ts
import { describe } from 'node:test';
describe(); // 🫤ESLint Config
{
"rules": {
"@typescript-eslint/no-floating-promises": [
"warn",
{
"allowForKnownSafeCalls": [
{
"from": "package",
"name": "describe",
"package": "node:test"
}
]
}
]
}
}tsconfig
Expected Result
describe() should not report, due to matching with typeOrValueSpecifier
Actual Result
report on describe()
Additional Info
Followup to #11372 (comment)
cc @Renegade334
Versions
| package | version |
|---|---|
typescript-eslint |
8.40.0 |
@types/node |
22.17.12 |
OliverJAsh and mmyoji
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 working
{ "compilerOptions": { // ... } }