Skip to content

linter: promise/prefer-await-to-callbacks flags Promise.resolve() #20343

@jlowcs

Description

@jlowcs

What version of Oxlint are you using?

1.55.0

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

What happened?

When using 'promise/prefer-await-to-then': 'error', the following are flagged:

const x = Promise.resolve(42)

Same for Promise.reject();

As far as I know, that's not consistent with the eslint rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions