[pve-devel] r6261 - pve-jslint/trunk
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Jul 8 09:41:11 CEST 2011
Author: dietmar
Date: 2011-07-08 09:41:11 +0200 (Fri, 08 Jul 2011)
New Revision: 6261
Modified:
pve-jslint/trunk/rhino.js
Log:
fix options for new jslint version
Modified: pve-jslint/trunk/rhino.js
===================================================================
--- pve-jslint/trunk/rhino.js 2011-07-08 06:30:15 UTC (rev 6260)
+++ pve-jslint/trunk/rhino.js 2011-07-08 07:41:11 UTC (rev 6261)
@@ -6,21 +6,21 @@
}
defaults = {
- predef: ['Ext'],
+ predef: ['Ext', 'PVE'],
+ rhino: true,
bitwise: true, // Allow bitwise operators
- browser: true, // Assume a browser ( http://www.JSLint.com/lint.html#browser )
- css: true, // Tolerate CSS workarounds ( http://www.JSLint.com/lint.html#css )
- eqeqeq: true, // Require `===` && `!==`
- immed: true, // Immediate invocations must be wrapped in parens.
- laxbreak: true, // Tolerate "sloppy" line breaks
- newcap: true, // Require initial caps for constructors ( http://www.JSLint.com/lint.html#new )
- nomen: false, // Allow dangling `_` in identifiers
- onevar: false, // Allow multiple `var` statements.
- plusplus: false, // Allow `++` and `--`
- regexp: true, // Disallow `.` and `[^...]` in regex
- strict: false, // Don't require `use strict;`
- undef: true, // Disallow undeclared variables ( http://www.JSLint.com/lint.html#undefined )
- white: false // Don't apply strict whitespace rules
+ browser: true, // Assume a browser
+ css: true, // Tolerate CSS workarounds
+ eqeq: true, // Allow `==` && `!=`
+ //immed: true, // Immediate invocations must be wrapped in parens.
+ //nomen: true, // Allow dangling `_` in identifiers
+ newcap: false, // Require initial caps for constructors
+ vars: true, // Allow multiple `var` statements.
+ plusplus: true, // Allow `++` and `--`
+ regexp: false, // Disallow `.` and `[^...]` in regex
+ sloppy: true, // Don't require `use strict;`
+ undef: false, // Disallow undeclared variables
+ white: true // Don't apply strict whitespace rules
};
for (i = 0; i < a.length; ++i) {
More information about the pve-devel
mailing list