Remove Eslint Warnings For Dynamic Imports
import/no-dynamic-require & global-require
In JavaScript applications, such as Node and React JS, you might see or use code that requires static files dynamically. As a result, ESlint throws two warnings unless you mute them. The warnings are:
Calls to require() should use string literals eslint(import/no-dynamic-require).
[Read More]