Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
118
rated 0 times [  122] [ 4]  / answers: 1 / hits: 37573  / 8 Years ago, fri, may 27, 2016, 12:00:00

enter


I have this problem with ESLint and can't soulve on my own, those stores are separated for each enviroement as you can see on the screenshot, how could I fix that to make ESLint happy and I to learn a new thing?


More From » node.js

 Answers
85

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 */

[#61996] Thursday, May 26, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
triston

Total Points: 545
Total Questions: 88
Total Answers: 94

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;