From ed88578460c4077b809958ccbd8e0db8defa4b65 Mon Sep 17 00:00:00 2001 From: Damien Pobel Date: Mon, 4 Dec 2023 20:01:23 +0100 Subject: [PATCH] chore(prettier): npx prettier -w . results --- build.js | 4 ++-- lib/metalsmith/image-variation.js | 6 +++--- tests/metalsmith/feed-postcustomelements.js | 2 +- tests/metalsmith/image-variation.js | 2 +- tests/nunjucks/filters.js | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.js b/build.js index 150c0cc2..89b923b2 100755 --- a/build.js +++ b/build.js @@ -57,12 +57,12 @@ conf.tagLangFeed.preprocess = conf.feed.preprocess; const filterOutVeilleFn = require("./lib/metalsmith/filter-collection.js").excludeWithMetadataFn( - "weeklyTech" + "weeklyTech", ); const keepTopPostFn = require("./lib/metalsmith/filter-collection.js").excludeWithoutMetadataFn( - "top-priority" + "top-priority", ); conf.collections.lastPosts.filterBy = filterOutVeilleFn; diff --git a/lib/metalsmith/image-variation.js b/lib/metalsmith/image-variation.js index 12852477..5d34e819 100644 --- a/lib/metalsmith/image-variation.js +++ b/lib/metalsmith/image-variation.js @@ -79,7 +79,7 @@ function handleImageAttribute( files, localRegexp, siteUrl, - tasks + tasks, ) { let src = element.attr(attr); @@ -127,9 +127,9 @@ module.exports = function (options) { files, localRegexp, siteUrl, - tasks + tasks, ); - } + }, ); }); diff --git a/tests/metalsmith/feed-postcustomelements.js b/tests/metalsmith/feed-postcustomelements.js index 4bc3cab1..56765b0c 100644 --- a/tests/metalsmith/feed-postcustomelements.js +++ b/tests/metalsmith/feed-postcustomelements.js @@ -29,7 +29,7 @@ describe("postCustomElements metalsmith-feed function", function () { assert.equal( file.published.format("ddd, DD MMM YYYY HH:mm:ss [GMT]"), - res.date + res.date, ); }); }); diff --git a/tests/metalsmith/image-variation.js b/tests/metalsmith/image-variation.js index 5711cad6..e2591bfb 100644 --- a/tests/metalsmith/image-variation.js +++ b/tests/metalsmith/image-variation.js @@ -15,7 +15,7 @@ describe("imageVariation metalsmith plugin", function () { .source(fixtureDir + "src/") .destination(fixtureDir + "build/") .use( - imageVariation({ concurrency: 2, siteUrl: "http://damien.pobel.fr" }) + imageVariation({ concurrency: 2, siteUrl: "http://damien.pobel.fr" }), ) .build(function (error, result) { buildError = error; diff --git a/tests/nunjucks/filters.js b/tests/nunjucks/filters.js index 080e0414..894af106 100644 --- a/tests/nunjucks/filters.js +++ b/tests/nunjucks/filters.js @@ -27,7 +27,7 @@ describe("Nunjucks filters", function () { assert.equal( "http://damien.pobel.fr/blog/slashes/", - filters.url(path, prefix) + filters.url(path, prefix), ); }); @@ -52,7 +52,7 @@ describe("Nunjucks filters", function () { it("should add the variation part", function () { assert.equal( "images/whatever/photo.jpg", - func("images/photo.jpg", "whatever") + func("images/photo.jpg", "whatever"), ); }); });