jslint.vim icon indicating copy to clipboard operation
jslint.vim copied to clipboard

where to put .jslintrc for jslint usage from command line

Open terryroe opened this issue 12 years ago • 3 comments

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.

terryroe avatar Feb 26 '12 20:02 terryroe

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.

hallettj avatar Feb 26 '12 23:02 hallettj

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.

terryroe avatar Feb 27 '12 18:02 terryroe

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)

geetotes avatar Feb 27 '13 15:02 geetotes