Questions tagged [sublime-jslint]

JSLint plugin for Sublime Text 2 text editor

JSLint is a "code quality" tool for Javascript developed by Douglas Crockford, a well-known developer also responsible for JSON, JSMin, ADSafe and parts of YUI. JSLint is parallel to C's lint.

10 questions
16
votes
5 answers

Sublime [Errno 2] No such file or directory: 'node'

On sublime text I'm getting following error while trying to validate JS. [Errno 2] No such file or directory: 'node' [cmd: ['node', '/Users/gurpreetsingh/Library/Application Support/Sublime Text 3/Packages/JSLint/linter.js', '--sloppy', '--indent',…
RuntimeException
  • 1,135
  • 2
  • 11
  • 25
7
votes
1 answer

sublime-jslint: any way to ignore specific code sections?

I've got a ton of JS spaghetti that is in dire need of a good scrubbing. I've already configured sublimetext2 via package Control to use sublime-jslint, and I've passed the necessary command-line switches to jslint4java-2.0.1 so it knows how to do…
3
votes
1 answer

No such file or directory: 'jshint'

On sublime text I'm getting following error while trying to validate JS. [Errno 2] No such file or directory: 'jshint' [cmd: ['jshint', '/Users/vladislavkopylov/Downloads/test.js', '--reporter', '/Users/vladislavkopylov/Library/Application…
user3517175
  • 363
  • 2
  • 14
3
votes
2 answers

Disabling or Overriding JSLint Options in Sublime Text 2

I have JSLint Plugin installed in Sublime Text 2. But i don't agree with some of the rules imposed by the JSLint specially this error on declaring variables inside a loop. Move 'var' declarations to the top of the function. for (var i = 0; i <…
chanHXC
  • 611
  • 1
  • 7
  • 17
3
votes
3 answers

Sublime text 2: jslint plug-in missing /usr/local/bin/jslint

I've got myself into a bit of a problem. I left my computer at home and went to my summer home for a couple of days, when I return home and try to save files inside Sublime Text 2 I get this error: module.js:340 throw err; ^ Error: Cannot find…
2
votes
3 answers

JSLint with Sublime text 2 - The system cannot find the file specified

I have installed JSlint properly but when I tried to run it I got below error: [Error 2] The system cannot find the file specified [cmd: [u'/usr/local/bin/node', u'/usr/local/bin/jslint', u'--sloppy', u'--indent', u'2', u'--node', u'--nomen',…
Dheeraj Agrawal
  • 2,347
  • 11
  • 46
  • 63
1
vote
1 answer

Sublime Text Syntax Highlighter Not working on Windows?

I have created a Sublime Text File for Syntax Highlighting which is mentioned below.Its for a new Language called Visage and the Syntax definition is taken from Groovy since most of the syntax looks like Groovy.The file name is Visage.tmLanguage and…
0
votes
1 answer

Tolerate ++ operator in JSLint plugin for Sublime Text

I use the JSLint plugin for ST (in addition to the Sublime​Linter-jshint plugin). I disagree with the theory that the use of ++ or -- is evil, tricky etc. and use them quite freely. As such I don't appreciate the warning that I should use += 1…
Trevor
  • 525
  • 2
  • 6
  • 19
0
votes
1 answer

How do i add linting package for jquery in Sublime text 3?

i have installed the package called jslint but its look like it is not supporting for jQuery. How do i checking error on jquery with sublime text 3? Kindly help.
user5075511
  • 421
  • 1
  • 5
  • 11
0
votes
1 answer

Sublime Text 2, LESS and jsLint

I am trying to to compile a LESS file into a CSS one (both located in the same directory, same name). The issue is that i keep getting: 1 A css file should begin with @charset 'UTF-8'; @import "color-theme.less"; // Line 4, Pos 2 #2 Stopping. (0%…
Zubzob
  • 2,653
  • 4
  • 29
  • 44