Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support async formatters #174

Merged
merged 1 commit into from
May 9, 2023

Conversation

toddjordan
Copy link
Contributor

Some formatters return promises, such as eslint-formatter-todo, which grunt-eslint doesn't currently handle.
See https://github.com/lint-todo/eslint-formatter-todo/blob/main/src/formatter.ts#L101

Instead of formatting grunt-eslint gives this:
image

I think simply making the format call async will properly handle this. I've tried it with both sync and async formatters and seems to work as expected.

@sindresorhus sindresorhus merged commit 89eb056 into sindresorhus:main May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants