Allow function tasks to return parallel tasks

Author: benedictleejhCreated Sep 12, 2026Updated Sep 13, 2026

Is your feature request related to a problem? Please describe.

While lint-staged now supports parallel tasks by using nested arrays to group tasks that should be run in parallel, function tasks are not allowed to return parallel tasks. They are current limited to returning only sequential tasks, both at a type level and runtime level.

Describe the solution you'd like

Allow function tasks to return parallel tasks.

Describe alternatives you've considered

Continuing to use fake globs as described in https://github.com/lint-staged/lint-staged/issues/934#issuecomment-1097793208

Confirmation

  • I have read this issue template before submitting an issue. If left unchecked, the issue might be ignored or closed without consideration.
  • I have written this issue in my own words. I did not just copy the output directly from an AI agent. I have made sure this issue reflects my own thinking, and take ownership of its contents.