I use react & flux to develop my frontend web app: So I define the constants like this: /js/constants/AppConstants.js /js/constants/ProductConstants.js This totally works and is correct, then I push these codes to Github (with Codeclimate integration). Codeclimate says: Obviously, we see that this line const KeyMirror = require(‘keymirror’) was defined in 2 different files, and Codeclimate thinks this should be