ESlint no-useless-concat, no-mixed-spaces-and-tabs

v1.18.x
Peter Jaszkowiak 8 years ago
parent fdf4f873bf
commit c18808fdeb

@ -63,8 +63,8 @@
// "brace-style": "off", // "brace-style": "off",
"max-statements-per-line": "off", "max-statements-per-line": "off",
"no-unused-vars": "off", "no-unused-vars": "off",
"no-mixed-spaces-and-tabs": "off", // "no-mixed-spaces-and-tabs": "off",
"no-useless-concat": "off", // "no-useless-concat": "off",
// "require-jsdoc": "off", // "require-jsdoc": "off",
// "eqeqeq": "off", // "eqeqeq": "off",
// "no-negated-condition": "off", // "no-negated-condition": "off",

@ -43,7 +43,7 @@ define('admin/extend/rewards', ['translator'], function (translator) {
var btn = $(this); var btn = $(this);
var disabled = btn.hasClass('btn-success'); var disabled = btn.hasClass('btn-success');
var id = $(this).parents('[data-id]').attr('data-id'); var id = $(this).parents('[data-id]').attr('data-id');
btn.toggleClass('btn-warning').toggleClass('btn-success').translateHtml('[[admin/extend/rewards:' + disabled ? 'disable' : 'enable' + ']]'); btn.toggleClass('btn-warning').toggleClass('btn-success').translateHtml('[[admin/extend/rewards:' + (disabled ? 'disable' : 'enable') + ']]');
// send disable api call // send disable api call
return false; return false;
}); });

@ -321,7 +321,7 @@ $(document).ready(function () {
callback(templates.cache[template]); callback(templates.cache[template]);
} else { } else {
$.ajax({ $.ajax({
url: config.relative_path + '/assets/templates/' + template + '.tpl' + '?' + config['cache-buster'], url: config.relative_path + '/assets/templates/' + template + '.tpl?' + config['cache-buster'],
type: 'GET', type: 'GET',
success: function (data) { success: function (data) {
callback(data.toString()); callback(data.toString());

@ -558,7 +558,7 @@ app.cacheBuster = null;
var scriptEl = document.createElement('script'); var scriptEl = document.createElement('script');
scriptEl.type = 'text/javascript'; scriptEl.type = 'text/javascript';
scriptEl.src = config.relative_path + '/assets/vendor/jquery/js/jquery-ui.js' + '?' + config['cache-buster']; scriptEl.src = config.relative_path + '/assets/vendor/jquery/js/jquery-ui.js?' + config['cache-buster'];
scriptEl.onload = callback; scriptEl.onload = callback;
document.head.appendChild(scriptEl); document.head.appendChild(scriptEl);
}; };

@ -29,7 +29,7 @@
} }
}); });
$.get(config.relative_path + '/api/widgets/render' + '?' + config['cache-buster'], { $.get(config.relative_path + '/api/widgets/render?' + config['cache-buster'], {
locations: widgetLocations, locations: widgetLocations,
template: template + '.tpl', template: template + '.tpl',
url: url, url: url,

@ -38,26 +38,26 @@
'\n===========================================================\n' + '\n===========================================================\n' +
'Please, add parameters for test database in config.json\n' + 'Please, add parameters for test database in config.json\n' +
'For example (redis):\n' + 'For example (redis):\n' +
'"test_database": {' + '\n' + '"test_database": {\n' +
' "host": "127.0.0.1",' + '\n' + ' "host": "127.0.0.1",\n' +
' "port": "6379",' + '\n' + ' "port": "6379",\n' +
' "password": "",' + '\n' + ' "password": "",\n' +
' "database": "1"' + '\n' + ' "database": "1"\n' +
'}\n' + '}\n' +
' or (mongo):\n' + ' or (mongo):\n' +
'"test_database": {' + '\n' + '"test_database": {\n' +
' "host": "127.0.0.1",' + '\n' + ' "host": "127.0.0.1",\n' +
' "port": "27017",' + '\n' + ' "port": "27017",\n' +
' "password": "",' + '\n' + ' "password": "",\n' +
' "database": "1"' + '\n' + ' "database": "1\n' +
'}\n' + '}\n' +
' or (mongo) in a replicaset' + '\n' + ' or (mongo) in a replicaset\n' +
'"test_database": {' + '\n' + '"test_database": {\n' +
' "host": "127.0.0.1,127.0.0.1,127.0.0.1",' + '\n' + ' "host": "127.0.0.1,127.0.0.1,127.0.0.1",\n' +
' "port": "27017,27018,27019",' + '\n' + ' "port": "27017,27018,27019",\n' +
' "username": "",' + '\n' + ' "username": "",\n' +
' "password": "",' + '\n' + ' "password": "",\n' +
' "database": "nodebb_test"' + '\n' + ' "database": "nodebb_test"\n' +
'}\n' + '}\n' +
'===========================================================' '==========================================================='
); );

Loading…
Cancel
Save