speedskater/babel-plugin-rewire

eslint no-undef rule considers __rewire_reset_all__ as invalid undefined symbol

Closed this issue · 1 comments

hng0 commented

I understand that __rewire_reset_all__ is injected globally but in my project eslint rule no-undef is yelling as it cannot find where the function is coming from. I have to add linter next line ignore in whenever I use the function. Does anyone know a better way to handle this?

hng0 commented

I've found out eslint global configuration https://eslint.org/docs/user-guide/configuring#specifying-globals that can ignore this.