ESLint ES6 Redux globally required Unexpected require ();

enter image description here

Hi guys, yes, I have this problem with ESLint, and I can’t do it on my own, these stores are separate for each enviroement, as you can see in the screenshot, how can I fix this to make ESLint happy and I will learn new? : (

+10
source share
2 answers

This is because you need a forked code: http://eslint.org/docs/rules/global-require .

If you do not want to change your code, just add disable comments:

/* eslint-disable global-require */ // your code here /* eslint-enable global-require */ 
+17
source

You can disable it in your .eslintrc file.

 { rules: { "global-require": 0 } } 
0
source

All Articles