-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended
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
async function fn() {
await Promise.reject(3).finally(async () => {});
}ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/no-misused-promises": "error"
},
};tsconfig
Expected Result
No error
Actual Result
Error:
Promise returned in function argument where a void return was expected
Additional Info
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intendedIssues that are closed as they are working as intended
{ "exclude": ["**/node_modules"], "compilerOptions": { "target": "ES2022", "useDefineForClassFields": true, "module": "ES2022", "moduleResolution": "node", "resolveJsonModule": true, "allowJs": true, "checkJs": true, "declaration": true, "declarationMap": true, "sourceMap": true, "removeComments": true, "importHelpers": true, "downlevelIteration": true, "newLine": "LF", "isolatedModules": true, "verbatimModuleSyntax": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, "noUnusedLocals": false, "noUnusedParameters": false, "exactOptionalPropertyTypes": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "allowUnusedLabels": false, "allowUnreachableCode": false, "skipLibCheck": true } }