"Syntax Error: Error: No ESLint configuration found in" when I tried to npm run serve a project I got from GitHub

Viewed 10219

I tried downloading and running a Vue.js project from GitHub that was sent to me, but as soon as I tried npm run serve, I got the following error:

Syntax Error: Error: No ESLint configuration found in C:\Users\User\Desktop\movies-main\src.

I ran npm install too beforehand. I've create a couple of Vue.js projects myself and have never had this error so I'm not sure how to solve it. Could I be missing a dependency on my machine or something? I haven't used ESLint before.

2 Answers

Open your project folder. Then run the following command

npm install eslint -g -D

Then finish by typing :

eslint --init

Solve the problem for me.

Or use the locally installed eslint

npm init @eslint/config
Related