I’m using jest/enzyme in my react app with the c9 IDE.
jest adds a number of global resources to the environment and when encountered, C9 flags these as undefined and marked with a "x is not not defined: please fix or add /* global x */
I’ve got my eslint rules setup with globals so the linter has no problem with these, however C9 still flags as undefined.
I’d rather not have to mark each instance as /* global x */ but would instead have some configuration file that allows and respects these from a central location.
Other posts on this matter mention adding these to the .eslintrc file, but this doesn’t “fix” the IDE view.
Is there anything else that can be done here?