73rhodes / Sublime-JSLint

JSLint for Sublime Text 2 and 3.
80 stars 14 forks source link

Can I add an specific file with settings for specific projects? #32

Closed duranmla closed 10 years ago

duranmla commented 10 years ago

Perhaps by now I need to tackle a project with Neon and I want to have a file with the global namespace that I'm using and specific stuff of neon. So can I do something a part of write the setting on the top of each file? (Which is what I want to avoid).

darrenderidder commented 10 years ago

Yes, you can add any globals you want in the user preferences.

darrenderidder commented 10 years ago

Using the --predef property.

duranmla commented 10 years ago

Mmm ok but I have to set a new profile or write into my personal settings ALL the globals for all my projects, I can not divide the configuration for each project?

darrenderidder commented 10 years ago

Yes, that's currently the way Sublime works.... there are no per-project language/build specific settings as far as I know. For now, all I can really suggest is symlinking the default path for the JSLint user preferences to a copy of the user prefs file in your working directory with the project-specific settings in it.