using eslint to check the code