How can I fix the build error in the production environment?
ERROR: /home/vsts/work/1/s/src/app/app.component.spec.ts[1, 32]: " should be ' ERROR: /home/vsts/work/1/s/src/app/app.component.spec.ts[2, 30]: " should be ' All files pass linting. Lint warnings found in the listed files. Lint errors found in the listed files. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] ng:
ng "lint"
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] ng script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
On my machine, I couldn't reproduce the error using the commands below. How should I go about resolving this issue?
npm run ng build --prod
npm run ng build --env=prod
npm run build:prod
The error no longer appears after setting quotemak:false, but I encountered more errors such as: 1) Comments must start with a space 2) Object access via string literals is disallowed 3) Assignments in conditional expressions are forbidden, etc.
How can I ignore all lint errors without explicitly mentioning each one?