Most of the work was done by `eslint --fix`, I fixed around 10 cases where it could not auto-convert.