jslint.vim
jslint.vim copied to clipboard
where to put .jslintrc for jslint usage from command line
I'm trying to run jslint from the command line, but it seems to ignore my .jslintrc file. I have .jslintrc in my home directory and it works nicely inside Vim. I tried copying .jslintrc to the directory with the jslint, and to the directory where I was running it against .js files, but no luck.
I would really like to use this utility from the command line with my own jslint preferences, so any help would be greatly appreciated.
The command line script is not set up to reference a .jslintrc file yet. I can update it to do so.
If you can install node and npm though, you can get some existing command line programs that are more featureful than the one that I provide. For example, the jslint npm package.
If you could update your jslint, that would be great. I'd really like to use just the one config file for both vim and CL. Thanks.
Keep in mind you can also drop your jsLint prefs at the top of the file you're working on. i.e.:
/*jslint white: true, undef: true*/
/*global _, Backbone*/
(Note these settings are an example, when you use undef
, you don't need global
)