Recently, I encountered an issue with my Vue app where I am using Eslint with Prettier. Even though I have set up a Github action to check the code style, running npm run lint -- --no-fix
only logs the warnings and does not cause the workflow to fail.
I ran a test Pull Request:
https://i.sstatic.net/9Jp23.png
Despite my expectations, the workflow passes without failing. Is there a specific flag that needs to be added for this purpose? For instance:
npm run lint -- --no-fix --fail-on-errors-and-warnings