ESLint ES6 Redux global-required Unexpected require();
You can disable it in your .eslintrc file.
{
rules: {
"global-require": 0
}
}
You can also disable it inline:
const facebookIcon = require('../../assets/images/facebook.svg'); // eslint-disable-line global-require
It's because you're requiring in branched code: http://eslint.org/docs/rules/global-require.
If you don't want to change your code, just add disabling comments:
/* eslint-disable global-require */
// your code here
/* eslint-enable global-require */