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: 586
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

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

Many languages allow a convenience in scripting that allows an && to be used as flow control. var foo = [1,2,3,4]; foo[0] && fop = foo.shift(); //assigns the...
12 Mar 18, 2010
12:21 pm

pauanyu
Send Email

Many browsers barf when an object key is a reserved word. Sure, they should be able to figure out that we are in an object.... But IE can't.Example: var foop...
10 Mar 18, 2010
12:44 am

Michael Mikowski
z_mikowski
Send Email

Hi, checking this HTML fails because of the + in type: <link rel="alternate" type="application/rss+xml"; title="" href="" /> (same with atom+xml) Without, the...
3 Mar 12, 2010
10:35 pm

walfisch_in_the_sea
walfisch_in_...
Send Email

Hi everybody, I was wondering how to define my root namespace in "strict format" Normally i use the following code: /*global YAHOO, MYNS */ if (!this.MYNS) { ...
2 Mar 12, 2010
7:09 pm

pauanyu
Send Email

Here is a lisp procedure that simply adds 'a' to the absolute value of 'b': (define (a-plus-abs-b a b) ((if (> b 0) + -) a b)) I think this is beautiful, and I...
1 Mar 9, 2010
10:42 pm

Matthew Taylor
mattspratt
Send Email

The code snippet below doesn't give any errors or warnings. But return with and without a value is used. Shouldn't that at least issue a warning? "use strict";...
7 Mar 8, 2010
8:02 pm

Douglas Crockford
douglascrock...
Send Email

+new Date() === new Date().getTime(); +new Date() returns a timestamp. Is this good style? Or should it be avoided?...
2 Mar 6, 2010
2:24 pm

Harry Whitfield
harry152566
Send Email

I wish JSLint had an option that would allow code like this: if (!someVariable) return; I understand the danger of allowing code without braces like: if...
14 Feb 24, 2010
6:00 pm

Michael Lorton
mlorton
Send Email

Not a JSLint question, but I know there are really knowledgeable JavaScript developers on this list ... Why can't I add methods to the prototype of the...
7 Feb 22, 2010
11:39 pm

Douglas Crockford
douglascrock...
Send Email

When I don't actually need the object instance, I enclose my "new Xxxx()" statements in parenthesis to keep JSLint happy and I assumed some JavaScript...
7 Feb 22, 2010
8:31 am

Satyam
satyamutsa
Send Email

Any idea how hard it would be/will be to add the ES5 setter/getter syntax to the parser? Example x = {get value(){return "foo";}};...
3 Feb 21, 2010
5:26 pm

Steven Parkes
smparkes...
Send Email

I have already defined YAHOO and YUI as accepted global variables but JSLint still warns me that "type is unnecessary" in <script> tags. I've seen the messages...
1 Feb 20, 2010
10:50 pm

Satyam
satyamutsa
Send Email

jslint doesn't expect to see new String, but I need it because I want to set a property of the string: var str = new String('somestring&#39;); str.id = 123; Or is...
15 Feb 19, 2010
6:04 pm

Jordan
ljharb
Send Email

Hi, In the code snippet below, b will always be 'is TRUE'. Clearly the intention was that b should be 'a is FALSE'. No javascript error but the result is...
2 Feb 18, 2010
6:47 pm

William Chapman
jeddahbill
Send Email

I frequently find that I must convert non-objects into objects. Consider, for example, a function that expects one of it's arguments to be an object. If you...
3 Feb 15, 2010
4:44 pm

pauanyu
Send Email

JSLint complains if there is a comment before the root element. I'm pretty sure that should be valid....
22 Feb 13, 2010
6:21 am

Cheney, Edward A SSG ...
sandyhead25
Send Email

The maxlen option sets the maximum length (in characters) of a line of program text. Lines that are longer will produce a "Line too long." warning....
2 Feb 11, 2010
8:58 pm

Chris
altearius
Send Email

I am trying to run JSLint from the command line but it stops after displaying the first warning, even if I turn it of by specifying /*jslint passfail: false */...
2 Feb 11, 2010
1:58 pm

Douglas Crockford
douglascrock...
Send Email

I am checking if a variable is defined or not, if it is not defined explicitly I am going to define it by doing: if ( typeof(aVariable) == 'undefined&#39; ) { var...
6 Feb 11, 2010
8:33 am

demirozba
Send Email

I have added a new option: [ ] Require Initial Caps for constructors (option.newcap) I highly recommend that you always turn this option on. If you call a...
7 Feb 9, 2010
2:28 pm

Douglas Crockford
douglascrock...
Send Email

I've been running a JSlint checking Web service for a year or two over here: http://jslint.webvm.net/mylintrun.js However when I use it, I always get the last...
3 Feb 8, 2010
2:39 pm

dadraqsta
Send Email

I see there is an option to allow HTML to contain a fragment instead of a full document. I know how to specify JSLint options in a comment at the top of a...
5 Feb 8, 2010
1:44 pm

Mark Volkmann
mark_volkmann
Send Email

Is there a way to get JSLint to approve of a <!DOCTYPE ...> at the top of a .html file that specifies the document is XHTML?...
3 Feb 7, 2010
2:26 pm

Cheney, Edward A SSG ...
sandyhead25
Send Email

In JavaScript: A Survey of the Language, you wrote: !! can be used as a prefix operator, converting its operand to a boolean. but JSLint says: Confusing use of...
6 Feb 2, 2010
10:06 am

Jordan
ljharb
Send Email

Using JSLint with emacs and flymake-mode to provide near-live code annotation with lint results has been well documented for a while over on EmacsWiki. It's...
1 Jan 29, 2010
11:01 pm

Kevin
kevint241
Send Email

I noticed that JSLint does not detect a problem with HTML ID attributes that begin with a numeral. I ran into a problem the other day where YUI3 was doing...
3 Jan 29, 2010
9:44 am

Morgaut Alexandre Lou...
morgaut_a
Send Email

Hi, A developer in my team is using the CSS code: z-index:+1; to increment the z-index of an element by one. This fails the JSLint validator, I cannot seem to...
8 Jan 29, 2010
9:31 am

Dominic Mitchell
happygiraffe...
Send Email

I put together a Ruby gem driver for JSLint called jslintrb. It's a small shim around the Ruby Johnson gem, which is a bridge between Ruby and SpiderMonkey,...
3 Jan 25, 2010
4:13 pm

smparkes@...
smparkes...
Send Email

Methinks the time spent on the ASCII calligraphic title alone should be worth something... Fine work on the rest as well :) Peace, Dan [Non-text portions of...
3 Jan 23, 2010
10:56 pm

Dan McNeil
dwmcneil...
Send Email

I normally don't use with: never in production code. The one case I do like it is in test drivers. I have a test object which has a lot of methods (BDD:...
6 Jan 23, 2010
8:40 pm

Dan McNeil
dwmcneil...
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