I am also currently working on JS infrastructure for my company. What I do, I use OOP elements for JS. In other words, I am implementing similar code for C # libraries (not that similar, imitation will be the right word). As an example in C #, you are using Microsoft.Window.Forms, so I can use JSOOP and use the extension and override method to create the same script. But if you are far advanced in your project, then converting your JS code to JSOOP will take a lot of time.
use JSLint, this will confirm your code and result in a readable, script engine friendly code. Although JSLint is very strict, so you can use JSHint.
using a separate file for each component is a good idea, I do it too.
If you like, you can download the jQuery version of the developers, and you may have a general idea of how they created the framework. I learned a lot about jQuery structure!
source share