Add .eslintrc and fix lint errors.