Rewrite task to support latest ESLint and options

Fixes #1