Quantcast
Channel: Allow create-react-app to compile with ESLint errors - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Hazy for Allow create-react-app to compile with ESLint errors

$
0
0

I was having exactly the same problem after using a Vite for a while and then returning to CRA and installing my usual Airbnb linting tools. I found THIS solution on Github which basically says to add these lines to your package.json starting scripts

"start": "ESLINT_NO_DEV_ERRORS='true'  react-scripts start",  "build": "DISABLE_ESLINT_PLUGIN='true' react-scripts build",

This did the trick for me. It kept the linting errors showing in the code but unless they were breaking the code it compiled and ran no problem.

I don't think this is a long term solution, but it will do for a workaround...


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>