some code refactor
add eslint