Skip to content

bug: [no-misused-promises] 'checksConditionals' should check array predicate return #1038

Closed
@ark120202

Description

@ark120202

To make iteration methods be more similar to regular conditions their return types were changed to unknown (see microsoft/TypeScript#7779 and microsoft/TypeScript#31076). Rules that check conditions (strict-boolean-expressions, no-unnecessary-condition and no-misused-promises) can be quite useful to make make it safer

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or requestlocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions