I have a node.js project, and I am trying to get ESLint code inspection working and checked in to source control so that it works the same for all developers on the project. I got things working well on my machine by creating a proper scope, downloading a bunch of @types files, and customizing the code inspection settings.
For source control, I notices all the @types files I downloaded showed up in site.iml, and that was already in source control. I also added .idea/inspectionProfiles/Project_Default.xml and .idea/scopes/ESLint.xml to source control.
I shelved everything and unshelved it on a different Perforce client on the same machine to simulate what will happen when another developer on the project gets my changes. Mostly, things work - my scope and inspection settings all appeared to transfer to the new project. However, when I run Code > Inspect Code... I get 78 errors in the new location that I was not getting in the old location. 77 of the errors are unresolved process.env variables:
They are defined in the .env file in the project. I don't understand why in one instance of this project on the same machine, these things are resolved, but not in the other. If I go to the project that works and Ctrl+Click on LOG_LEVEL, it takes me to:
But in the project that has the extra errors, that same screen looks like this:
The second project is missing Node.js core, plus most of the boxes for the @types are not checked. Is there a way to keep this in sync for all developers on a project? Is this why I seeing differences in code inspection?