style: run prettier on pre-commit hook
This commit is contained in:
committed by
Stefan Rotsch
parent
b82d5a9da9
commit
9948712690
@@ -17,7 +17,7 @@ function isMobileViewport() {
|
||||
return width < 1200;
|
||||
}
|
||||
exports.isMobileViewport = isMobileViewport;
|
||||
exports.publicUrl = (process.env.PUBLIC_URL || "").replace(/\/$/, '') + "/";
|
||||
exports.publicUrl = (process.env.PUBLIC_URL || "").replace(/\/$/, "") + "/";
|
||||
function assetUrl(file) {
|
||||
return exports.publicUrl + file;
|
||||
}
|
||||
|
||||
@@ -92,9 +92,11 @@ var filteredOnly = function (items, tags) {
|
||||
};
|
||||
exports.filteredOnly = filteredOnly;
|
||||
var getTags = function (items) {
|
||||
var tags = items.reduce(function (acc, item) {
|
||||
var tags = items
|
||||
.reduce(function (acc, item) {
|
||||
return !item.tags ? acc : acc.concat(item.tags);
|
||||
}, []).sort();
|
||||
}, [])
|
||||
.sort();
|
||||
return Array.from(new Set(tags));
|
||||
};
|
||||
exports.getTags = getTags;
|
||||
|
||||
Reference in New Issue
Block a user