-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't workingtriageWaiting for team members to take a lookWaiting for team members to take a look
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageWaiting for team members to take a lookWaiting for team members to take a look