Commit 9b6b1f8e authored by Leo Iannacone's avatar Leo Iannacone

better jshintrc files - split checks between node and browser

parent fe20412a
{ {
"globals": {
"$": false,
"console": false,
"config": false,
"Utils": false,
"debug_socket": false
},
"globalstrict": true, "globalstrict": true,
"browser": true, "browser": true,
"node": true "node": true
......
/*jshint multistr: true */
'use strict'; 'use strict';
function Parser() { function Parser() {
...@@ -35,4 +36,4 @@ Usage: %s [-c config]\n\ ...@@ -35,4 +36,4 @@ Usage: %s [-c config]\n\
}); });
} }
module.exports = Parser module.exports = Parser;
{
"globals": {
"$": false,
"console": false,
"config": false
},
"globalstrict": true,
"browser": true
}
// main client javascript // main client javascript
/* global io: false */
/* global Preferences: false */
/* global Page_Generic: false */
/* global Page_Distrubion: false */
'use strict'; 'use strict';
var preferences = new Preferences(); var preferences = new Preferences();
...@@ -23,7 +29,7 @@ if (window.location.pathname == '/') { ...@@ -23,7 +29,7 @@ if (window.location.pathname == '/') {
label = config.debomatic.admin.name; label = config.debomatic.admin.name;
real_email = '<a href="mailto:' + real_email + subject + '">' + label + '</a>'; real_email = '<a href="mailto:' + real_email + subject + '">' + label + '</a>';
$(this).html(real_email); $(this).html(real_email);
}) });
} }
var socket = io.connect('/'); var socket = io.connect('/');
......
'use strict'; 'use strict';
/* global debug: false */ /* global Utils: false */
/* global page_generic: false */ /* global page_generic: false */
/* global debug: false */
/* global debug_socket: false */
// function to get all files in on click // function to get all files in on click
// event comes from HTML // event comes from HTML
......
/* global Utils: false */
/* global debug_socket: false */
'use strict'; 'use strict';
function Page_Generic() { function Page_Generic() {
......
/* global debug: false */
/* global page_generic: false */
'use strict'; 'use strict';
function Preferences() { function Preferences() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment