How to disable linting during React Next.js Node.js application build
If your application is in the proof of concept phase, it works and you just want to build it, you can disable the linting process to have a successful build regardless of linting errors.
- To disable TSLint for one line only, add the
// @ts-ignorebefore the line. - To disable TSLint on the entire file add
// @ts-nocheckas the first line of the file. - To disable ESLint during build add the
DISABLE_ESLINT_PLUGIN=trueenvironment variable to the .env file in your project root directory - To disable ESLint during Docker image build add the
ARG DISABLE_ESLINT_PLUGIN=trueto the Dockerfile