Skip to content

Commit

Permalink
Merge pull request #2082 from ChristianMurphy/chore/update-node-modules
Browse files Browse the repository at this point in the history
chore: update eslint and remark linters
  • Loading branch information
ChristianMurphy committed Jun 9, 2020
2 parents 7582242 + 1dac9a7 commit 9693438
Show file tree
Hide file tree
Showing 15 changed files with 2,658 additions and 1,161 deletions.
3,571 changes: 2,531 additions & 1,040 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "uportal",
"private": true,
"devDependencies": {
"eslint": "^6.0.0",
"eslint-config-google": "^0.13.0",
"eslint": "^7.0.0",
"eslint-config-google": "^0.14.0",
"prettier-eslint-cli": "^5.0.0",
"prettier-stylelint": "^0.4.2",
"remark-cli": "^7.0.0",
"remark-preset-lint-consistent": "^2.0.3",
"remark-preset-lint-recommended": "^3.0.3",
"remark-validate-links": "^9.0.0",
"remark-cli": "^8.0.0",
"remark-preset-lint-consistent": "^3.0.0",
"remark-preset-lint-recommended": "^4.0.0",
"remark-validate-links": "^10.0.0",
"stylelint": "^13.0.0",
"stylelint-config-standard": "^20.0.0"
},
Expand Down
152 changes: 79 additions & 73 deletions uPortal-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ var up = up || {};
if (breadcrumbs.find('span').length > 0) {
// Breadcrumbs do exist.
isKey =
breadcrumbs.find('span a[key="' + key + '"]').length > 0
? true
: false;
breadcrumbs.find('span a[key="' + key + '"]').length > 0 ?
true :
false;
if (!isKey) {
buildBreadCrumb(that, key, entity.name, breadcrumbs, browseFn);
} // end:if.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ up.lightboxConfig =
* retain that. Otherwise, it will switch back the normal state.
*
* @param url the url to update
* @returns the updated URL as a string.
* @return the updated URL as a string.
*/
convertExclusiveUrlToPageUrl = function(url) {
var newUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ var up = up || {};
};
var sourceID = $(item).attr('sourceid');
var nextId =
$(item).next().length != 0
? $(item)
$(item).next().length != 0 ?
$(item)
.next()
.attr('sourceid')
: '';
.attr('sourceid') :
'';
var prevId =
$(item).prev().length != 0
? $(item)
$(item).prev().length != 0 ?
$(item)
.prev()
.attr('sourceid')
: '';
.attr('sourceid') :
'';

if ('Tab' === tabOrPortlet) {
moveFavoriteGroup(sourceID, prevId, nextId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ var up = up || {};
portlets = [];
members =
overallThat.state.currentCategory &&
overallThat.state.currentCategory !== ''
? overallThat.registry.getMemberPortlets(
overallThat.state.currentCategory !== '' ?
overallThat.registry.getMemberPortlets(
overallThat.state.currentCategory,
true
)
: overallThat.registry.getAllPortlets();
) :
overallThat.registry.getAllPortlets();
$(members).each(function(idx, portlet) {
if (
!overallThat.state.portletRegex ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ var up = up || {};
layout.columns.length +
' ' +
that.options.strings[
layout.columns.length == 1
? 'column'
: 'columns'
layout.columns.length == 1 ?
'column' :
'columns'
],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ var up = up || {};
onPortletSearch: function(that, searchTerm, submitted) {
searchTerm = $.trim(searchTerm);
that.state.portletRegex =
searchTerm.length > 0
? new RegExp(up.escapeSpecialChars(searchTerm), 'i')
: undefined;
searchTerm.length > 0 ?
new RegExp(up.escapeSpecialChars(searchTerm), 'i') :
undefined;
that.portletListView.refresh();
},
onPortletSelect: function(that, portlet) {
Expand Down
Loading

0 comments on commit 9693438

Please sign in to comment.