Global variables in html file cause spurious eslint messages because eslint globals can not be configured
Created by: jhorneman
For reasons I have load a JavaScript file in CRA's index.html which defines a global variable.
CRA's eslint settings have "no-undef" set to error. Any use of the above-mentioned global variable will result in a compile error in the browser, preventing me from working.
Manually editing CRA's eslint settings to have "no-undef" be a warning is only a partial solution: I still get warnings in the console.
Manually editing the globals in CRA's eslint settings solves the problem, but is obviously not very elegant.
Ideally the development server would pick up on a .eslintrc file in the root of the project. (I've tried this, and it didn't work.)