Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
couch
  • Loading branch information
Douglas Crockford committed Mar 20, 2013
1 parent 267939b commit 9d0484c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions jslint.html
Expand Up @@ -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>
Expand Down
12 changes: 10 additions & 2 deletions jslint.js
@@ -1,5 +1,5 @@
// jslint.js
// 2013-03-18
// 2013-03-19

// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)

Expand Down Expand Up @@ -304,6 +304,7 @@ var JSLINT = (function () {
bitwise : true,
browser : true,
'continue': true,
couch : true,
debug : true,
devel : true,
eqeq : true,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -762,6 +766,10 @@ var JSLINT = (function () {
option.node = false;
node_js = true;
}
if (option.couch) {
add_to_predefined(couch);
option.couch = false;
}
}


Expand Down Expand Up @@ -4486,7 +4494,7 @@ klass: do {

itself.jslint = itself;

itself.edition = '2013-03-18';
itself.edition = '2013-03-19';

return itself;
}());
5 changes: 5 additions & 0 deletions lint.html
Expand Up @@ -510,6 +510,11 @@ <h1 id=options>Options</h1>
<td><code>continue</code></td>
<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>
Expand Down

0 comments on commit 9d0484c

Please sign in to comment.