updated eslint rules & coding style