Currently, my project involves using the following tools:
- Yarn
- Typescript
- Create React App
- ESLint
- Make (Makefile)
- Fish shell
During development, I encounter ESLint errors that prevent my project from compiling. To run my project, I use make run
, which essentially calls yarn start
. I wanted to create a new make command that allows me to run my project while converting all ESLint errors into warnings.
Fortunately, it appears that Create React App has a solution for this specific scenario - an environment variable called ESLINT_NO_DEV_ERRORS
. I proceeded to create a .env
file in the root directory and set ESLINT_NO_DEV_ERRORS=true
within that file.
However, upon running make run
or yarn start
, the flag is disregarded and errors are still raised. To investigate further, I printed the environment variables in public/index.html
. While my custom environment variable was present, the ESLINT_NO_DEV_ERRORS
setting was missing (see attached screenshot). According to the documentation, this particular variable does not require the REACT_APP_
prefix like other custom environment variables.
Any insights or recommendations on how to resolve this issue?