ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -19,7 +19,7 @@ define('admin/modules/colorpicker', function () {
},
onShow: function (colpkr) {
$(colpkr).css('z-index', 1051);
}
},
});
});
};

View File

@@ -11,7 +11,7 @@ define('admin/modules/instance', function () {
type: 'info',
title: 'Reloading... <i class="fa fa-spin fa-refresh"></i>',
message: 'NodeBB is reloading.',
timeout: 5000
timeout: 5000,
});
$(window).one('action:reconnected', function () {
@@ -20,7 +20,7 @@ define('admin/modules/instance', function () {
type: 'success',
title: '<i class="fa fa-check"></i> Success',
message: 'NodeBB has reloaded successfully.',
timeout: 5000
timeout: 5000,
});
if (typeof callback === 'function') {
@@ -37,7 +37,7 @@ define('admin/modules/instance', function () {
type: 'info',
title: 'Rebuilding... <i class="fa fa-spin fa-refresh"></i>',
message: 'NodeBB is rebuilding front-end assets (css, javascript, etc).',
timeout: 10000
timeout: 10000,
});
$(window).one('action:reconnected', function () {
@@ -46,7 +46,7 @@ define('admin/modules/instance', function () {
type: 'success',
title: '<i class="fa fa-check"></i> Success',
message: 'NodeBB has successfully restarted.',
timeout: 10000
timeout: 10000,
});
if (typeof callback === 'function') {
@@ -60,7 +60,7 @@ define('admin/modules/instance', function () {
type: 'info',
title: 'Build Complete!... <i class="fa fa-spin fa-refresh"></i>',
message: 'NodeBB is reloading.',
timeout: 10000
timeout: 10000,
});
});
};

View File

@@ -21,7 +21,7 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) {
// and wrap the match in a `.search-match` element
.replace(
new RegExp('^[\\s\\S]*?(.{0,25})(' + term + ')(.{0,25})[\\s\\S]*?$', 'gmi'),
'...$1<span class="search-match">$2</span>$3...<br>'
'...$1<span class="search-match">$2</span>$3...<br>',
)
// collapse whitespace
.replace(/(?:\n ?)+/g, '\n')
@@ -29,7 +29,7 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) {
title = title.replace(
new RegExp('(^.*?)(' + term + ')(.*?$)', 'gi'),
'$1<span class="search-match">$2</span>$3'
'$1<span class="search-match">$2</span>$3',
);
return '<li role="presentation" class="result">' +

View File

@@ -7,7 +7,7 @@ define('admin/modules/selectable', ['jqueryui'], function (jqueryui) {
selectable.enable = function (containerEl, targets) {
$(containerEl).selectable({
filter: targets
filter: targets,
});
};