This is an old question but it was the first google result I came across. For anyone else who stumbles across this, the 2021 answer is to use ESLint package eslint-plugin-import "no-unresolved" rule -
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md#casesensitive
By default, it will show a warning/error if a require path case does not match exactly. When the require path has a difference in case, you will see this:
/Users/<your user>/projects/my-app/api/v1/createApplication.js:
Line 7: import/no-unresolved - Casing of ../../../repositories/Application does not match the underlying filesystem.
To get this working:
npm install --save-dev eslint-plugin-import
And add to .eslintrc(.js or .json):
"extends": [
...
"plugin:import/recommended",
...
],
...
"rules": {
"import/no-unresolved": [2, {commonjs: true, amd: true}],
...