EsLint configuration command isn't working

Why EsLint configuration command isn’t working??

Just to take you through the detective process, my first instinct is to find out what is there:

ls -a node_modules/.bin

I see (at least in mine) that there is a file called “eslint” but no “eslint.cmd”.

I think what you want is:

node_modules/.bin/eslint --init

I’m guessing both .cmd and the issue is a Windows thing. Try adding quotes around the path.

"node_modules\.bin\eslint.cmd" --init

1 Like