Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

couch

  • Loading branch information...
commit 9d0484c33549381b0c908a732d3575de0acc300f 1 parent 267939b
Douglas Crockford authored
Showing with 16 additions and 2 deletions.
  1. +1 −0  jslint.html
  2. +10 −2 jslint.js
  3. +5 −0 lint.html
View
1  jslint.html
@@ -277,6 +277,7 @@
<fieldset id=JSLINT_OPTIONS><button>clear options</button><h1>Options</h1>
<div class=tristate>Assume...
<div title=browser><button></button><var></var> a browser</div>
+ <div title=couch><button></button><var></var> CouchDB</div>
<div title=devel><button></button><var></var> console,alert,&nbsp;...</div>
<div title=node><button></button><var></var> <a href="http://nodejs.org/">Node.js</a></div>
<div title=rhino><button></button><var></var> <a href="http://www.mozilla.org/rhino/">Rhino</a></div>
View
12 jslint.js
@@ -1,5 +1,5 @@
// jslint.js
-// 2013-03-18
+// 2013-03-19
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -304,6 +304,7 @@ var JSLINT = (function () {
bitwise : true,
browser : true,
'continue': true,
+ couch : true,
debug : true,
devel : true,
eqeq : true,
@@ -510,6 +511,9 @@ var JSLINT = (function () {
write_is_wrong: "document.write can be a form of eval."
},
comments_off,
+ couch = array_to_object([
+ 'emit'
+ ], false),
descapes = {
'b': '\b',
@@ -762,6 +766,10 @@ var JSLINT = (function () {
option.node = false;
node_js = true;
}
+ if (option.couch) {
+ add_to_predefined(couch);
+ option.couch = false;
+ }
}
@@ -4486,7 +4494,7 @@ klass: do {
itself.jslint = itself;
- itself.edition = '2013-03-18';
+ itself.edition = '2013-03-19';
return itself;
}());
View
5 lint.html
@@ -511,6 +511,11 @@ <h1 id=options>Options</h1>
<td><code>true</code> if the <code>continue</code> statement should be allowed.</td>
</tr>
<tr>
+ <td>Assume <a href="http://couchdb.apache.org/">CouchDB</a></td>
+ <td><code>couch</code></td>
+ <td><code>true</code> if <code>emit</code> should be predefined.</td>
+ </tr>
+ <tr>
<td>Tolerate debugger statements</td>
<td><code>debug</code></td>
<td><code>true</code> if <code>debugger</code> statements should be
Please sign in to comment.
Something went wrong with that request. Please try again.