Skip to content

linter: typescript/await-thenable should flag Promise.all misuse #20880

@aldenquimby

Description

@aldenquimby

What version of Oxlint are you using?

latest

What command did you run?

oxlint --type-aware

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "categories": {
    "correctness": "error",
    "nursery": "error",
    "pedantic": "error",
    "perf": "error",
    "restriction": "error",
    "style": "error",
    "suspicious": "error"
  },
  "plugins": ["eslint", "import", "jsdoc", "oxc", "node", "promise", "typescript", "unicorn"]
}

What happened?

The following code is flagged by @typescript-eslint/await-thenable, but it is not flagged by oxlint typescript/await-thenable:

  const helloWorld = await Promise.all(['hello', 'world']);

I believe any non-promise entries in a Promise.all input should be flagged

Metadata

Metadata

Assignees

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