Fixed various eslint warnings.