Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jslint_com · This group has moved to Google Plus.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 584
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
  Newest  |  < Newer  |  Older >  |  Oldest
Topics Messages Latest Post

Hello, I have a function that I've written that's not behaving as expecting. I ran JSLint on it, it didn't really fix my problem, but I had a few questions...
3 Feb 3, 2011
4:06 pm

Eric
ewgoforth
Send Email

Do please consider the security aspects. When modifying jslint to run as a Node module, you are also giving it complete access to the computer on which it...
11 Feb 3, 2011
7:42 am

Frederik Dohr
ace_noone
Send Email

if (a !== a) { } if (a === a) { } I've just debugged a piece of code where someone a long time ago thought they were adding a check to see if the argument they...
2 Feb 2, 2011
3:27 pm

Douglas Crockford
douglascrock...
Send Email

Here's yet another[1] JSLint wrapper for command-line enthusiasts. Since my Python wrapper[2] for JSLint always seemed overly complex, I've created a...
7 Feb 2, 2011
1:36 pm

Frederik Dohr
ace_noone
Send Email

I have noticed recently that jslint is now giving a problem warning when creating functions in a loop. Below is an example use case, I am creating a rows in a...
5 Feb 2, 2011
4:39 am

saj14saj
Send Email

And of course, if the intention was to include the first element of the linked list, the jslint safe version could be: // initialize a while (a) { // use a a =...
1 Jan 31, 2011
4:40 pm

Jakob Kruse
thekrucible
Send Email

My new employer has a non-JSLint-compliant white-space code convention. No options will make this validate. To use JSLint nontheless I wrote a bookmarklet that...
5 Jan 28, 2011
7:24 am

walfisch1
Send Email

This line of code: var href = window.location.href; causes this error Problem at line 1 character 12: 'window&#39; is not defined. With 'window&#39; in the predefined...
7 Jan 27, 2011
8:44 pm

Jim Auldridge
jaaulde
Send Email

Can anyone tell me why the code in this paste: http://pastie.textmate.org/private/gd8xrctmenh3qu2jrxintq generates these errors: Problem at line 7 character 1:...
6 Jan 26, 2011
9:39 pm

Jim Auldridge
jaaulde
Send Email

Maybe I’m just being dumb, but what’s the value of linting a beautified version of some script? Assuming (as you state) that turning off strict whitespace...
2 Jan 26, 2011
8:14 pm

walfisch1
Send Email

Can anyone please tell me why the code in this pastie: http://pastie.textmate.org/private/h0awaucqk6b25kjqfxuw9g generates this error: Problem at line 4...
1 Jan 26, 2011
7:58 pm

Jim Auldridge
jaaulde
Send Email

I really would have "use strict"; at the top of my files instead of in every function. Off course, concatinating files on the fly, and merging third party...
6 Jan 26, 2011
1:53 pm

Alexandre Morgaut
morgaut_a
Send Email

You could try something like: var MyClass = function () { ”use strict”; return new Class(…); }(); /Jakob Fra: jslint_com@yahoogroups.com...
1 Jan 26, 2011
1:50 pm

Jakob Kruse
thekrucible
Send Email

/* Given */ /*jslint strict: true, white: true, browser: true, devel: true, windows: true, sub: true, undef: true */ /*jslint nomen: true, eqeqeq: true,...
6 Jan 25, 2011
1:21 am

Douglas Crockford
douglascrock...
Send Email

Classification: UNCLASSIFIED ... In Mr. Crockford's defense his advise has always served me well in the past. I presume this alteration prevents some bug...
2 Jan 25, 2011
1:15 am

Douglas Crockford
douglascrock...
Send Email

Before the recent changes, JSLint accepted `typeof(variable)` and `delete(object.property)` in lieu of `typeof variable` and `delete object.property`. To me,...
2 Jan 24, 2011
2:16 pm

Douglas Crockford
douglascrock...
Send Email

I sometimes do assignments in a var statement. I'm not certain whether this is frowned upon. Given that I do, my var statement might contain a mix of mere...
2 Jan 23, 2011
10:10 pm

Zhami
ossayu
Send Email

With the new indentation rules, it appears that I can once again have one-liners like: function min(a, b) { if (b < a) { return b; } return a; } . Is this now...
2 Jan 23, 2011
6:20 pm

Douglas Crockford
douglascrock...
Send Email

Feelings have been hurt! I'm a fan of the leading comma style of coding. Until recently jslint partially supported it via the laxbreak option to prevent errors...
3 Jan 23, 2011
4:58 pm

John Sampson
nospamas
Send Email

JSLint is once again looking at indentation when option.indent contains a number that is greater than zero. It uses an enhanced K&R style, in which {} pairs,...
17 Jan 21, 2011
11:29 pm

abyssoft@...
abyssoft...
Send Email

Using Firefox 3.6.13, I get: Error: Problem at line 162 character 5: Redefinition of 'JSON'. var JSON; Problem at line 164 character 5: Read only. JSON = {};...
2 Jan 21, 2011
9:49 pm

Douglas Crockford
douglascrock...
Send Email

Is there some guidance or best practice for writing JavaScript applications with regard to efficient use of memory. For instance, are constructors better than...
3 Jan 21, 2011
7:00 pm

Marcel Duran
marcelduran
Send Email

All of my code, which used to run 100% clean with JSLint, now reports errors with every var statement, and I can't figure out how to fix. Consider this...
4 Jan 21, 2011
6:19 pm

Zhami
ossayu
Send Email

I started working on JSLint 10 years ago. It started as a demonstration of a parsing technique [http://javascript.crockford.com/tdop/tdop.html]. I intended to...
12 Jan 14, 2011
10:57 pm

abyssoft@...
abyssoft...
Send Email

With The Good Parts set: /*jslint white: true, onevar: true, undef: true, newcap: true, nomen: true, regexp: true, plusplus: true, bitwise: true */ JSLint...
2 Jan 12, 2011
5:17 pm

Douglas Crockford
douglascrock...
Send Email

Hello, I'm getting *Error:* Problem at line 4 character 3: Empty case default: with switch cases with the following code... (this is a hugely simplified ...
3 Jan 11, 2011
3:30 pm

Douglas Crockford
douglascrock...
Send Email

Classification: UNCLASSIFIED Luke, JSLint does not like fall through on case statements. The examples where JSLint is not throwing an error is because you...
2 Jan 11, 2011
11:57 am

Luke Page
page.luke...
Send Email

Is it purposeful or a bug that when the onevar option is off it is complaining about vars needing to be moved to the top of the function if they appear in a...
4 Jan 11, 2011
1:44 am

Praveenkumar
ps_praveenkr
Send Email

We want to not add "use strict" to every our js-file for now, but still take advantage of the strictest JSLint code quality setting. I see 'strict_mode'...
2 Jan 10, 2011
4:13 pm

Dominic Mitchell
happygiraffe...
Send Email

What tools / do you use to quickly fix JS code up to satisfy JSLint's warnings and errors? First I test the code's parsability, if I can get to the end of the...
4 Jan 9, 2011
8:38 pm

Graham King
graham_king_3
Send Email
  Newest  |  < Newer  |  Older >  |  Oldest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help