Switched to eslint

change to `err` for consistency?