According to stackoverflow article

first install eslint-cli globally: npm -g i eslint-cli.

you can see eslint are available to run in your bash.