Sublime Forum

SublimeLinter user settings for jslint

#1

Hi,

I’m wanting to implement jslint in the SublimeLinter package on my Windows machine.
I’m running Windows 7 64-bit and I have nodejs installed under “C:/Program Files/nodejs/node.js”.
When I attempt to save the necessary user settings in “SublimeLinter.sublime-settings” it is giving an error every time.

Here is what I have in the file…

    "sublimelinter_executable_map":
    {
    	"jslint": "C:/Program Files/nodejs/node.js"
    },

and here is a screenshot of the error…

0 Likes

#2
  1. make sure you wrap everything in {}
  2. double check your trailing commas.
  3. jsonlint.com/

{ "sublimelinter_executable_map": { "jslint": "C:/Program Files/nodejs/node.js" } }

Should work better.

0 Likes

#3

That fixed it right up.
After adding brackets and removing the trailing comma everything went back to normal.

Thank you for the quick response. :smile:

0 Likes