sindresorhus / grunt-eslint

Validate files with ESLint
MIT License
200 stars 72 forks source link

Support async formatters #174

Closed toddjordan closed 1 year ago

toddjordan commented 1 year ago

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.