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