Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Special notice only

17 results from messages in jslint_com

Advanced Search
  • > have a JSLint I can run between Git and Vim FWIW, that's what I wrote JSLint Reporter for: https://github.com/FND/jslint-reporter (I wasn't aware of the JSLint Utils until now) I've added both projects to the wiki: https://github.com/douglascrockford/JSLint/wiki/JSLINT -- F.
    Frederik Dohr Mar 18, 2013
  • > There is my namespace, but how would file A know, there is a > MY_APP.doSomething() in file B? I still need to plaster > /*global MY_APP: false */ statements all around. IMO, explicitly declaring dependencies is a _good_ thing - so I don't see a problem with this. -- F.
    Frederik Dohr Dec 27, 2011
  • > in a large project with many JS files, there should be a way to tell > JSLint to look at the entire set of files. Thus, if one library file > contains function doSomething(), the other files could use this > function right away, without writing in each file: > /*global doSomething: false*/ I very much disagree. Relying heavily on globals like that is a pretty clear sign that...
    Frederik Dohr Dec 26, 2011
  • Fetching Sponsored Content...
  • I very much like this idea of collecting background info on JSLint's various warnings/errors. > http://jslint.wikinet.org/wiki/Main_Page Perhaps it would make sense to use GitHub's wiki facilities instead, simply for discoverability? However, as the repo owner, Mr. Crockford would have to enable this. -- F.
    Frederik Dohr Sep 24, 2011
  • > Is there an online reference guide available for use "use strict"? There are a plenty of resources on ES5 strict mode, e.g. http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/ http://javascriptweblog.wordpress.com/2011/05/03/javascript-strict-mode/ https://developer.mozilla.org/en/JavaScript/Strict_mode > The containing functions are called like: > arrayFunc...
    Frederik Dohr Aug 7, 2011
  • > Expected an identifier and instead saw 'with'. Strict mode eliminates `with`: http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/ -- F.
    fdg001@gmx.net Jul 15, 2011
  • >> Problem at line 10 character 25: Bad assignment. >> xlSheet.Cells(1, 1) = 'Test'; > > That line is not valid JavaScript. It is some weird Microsoft thing. > Isn't there a way to set your cell using the language correctly? I'm barely familiar with ActiveX, but perhaps something like this: var cell = xlSheet.Cells(1, 1); cell.value = 'Test'; -- F.
    Frederik Dohr May 18, 2011
  • > What I'm doing already is evaluating fulljslint.js in a secure > context. Any attempt to access local resources *on evaluation* of the > script would fail. BUT! What I'm not doing yet is running the JSLINT > function in a secure context. Indeed, I hadn't quite thought that through - thanks for being thorough! > The last step is not terribly difficult, I just haven't had the time...
    Frederik Dohr Feb 3, 2011
  • > Node.js has a built-in feature for running scripts “sandboxed” [...] > The Node.js feature I mentioned is in the VM module. [...] If you use > those features (and use them correctly, which is not trivial), it > becomes completely safe to download and run any script I agree that this would be the ideal solution - and looking at your LintServer*, it appears you've already...
    Frederik Dohr Feb 2, 2011
  • I've just added an --upgrade option, so there's no need for the makefile anymore; simply run `node wrapper.js --upgrade` to download the latest version of JSLint: https://github.com/FND/jslint-reporter I'll revisit option parsing in the next few days. > The conventions on Unix for "negative" options have always been a > bit quaint. However, I would guess that you could do something...
    Frederik Dohr Feb 2, 2011