No ESLint configuration found in /opt/build/repo/src

All PostsPosts filtered by: so notes

No ESLint configuration found in /opt/build/repo/src

Updated: February 9, 2020 by Tony Alves

Original: on Stackoverflow

1:47:21 PM: No ESLint configuration found in /opt/build/repo/src.

The above error line points to a missing .eslintrc config file missing in your repository. You may not have committed it into your repository code and pushed it to GitHub.

If you clone your repository into a clean directory onto your machine and run the build command exactly like Netlify would, you should see the same error.

Note: Make sure your repository does have a .gitignore file which should also be included with the following. This doesn't affect anything, but might help you avoid pushing development and production files into your repository.

© Tony Alves