Skip to content

Commit

Permalink
Merge pull request #746 from dpobel/dependabot/npm_and_yarn/prettier-…
Browse files Browse the repository at this point in the history
…3.1.0

chore(deps-dev): bump prettier from 2.8.8 to 3.1.0
  • Loading branch information
dpobel authored Dec 4, 2023
2 parents 88ec3d4 + ed88578 commit 4b386fb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions lib/metalsmith/image-variation.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function handleImageAttribute(
files,
localRegexp,
siteUrl,
tasks
tasks,
) {
let src = element.attr(attr);

Expand Down Expand Up @@ -127,9 +127,9 @@ module.exports = function (options) {
files,
localRegexp,
siteUrl,
tasks
tasks,
);
}
},
);
});

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"postcss": "^8.4.32",
"postcss-import": "^15.1.0",
"postcss-preset-env": "^7.8.3",
"prettier": "^2.8.8",
"prettier": "^3.1.0",
"static-server": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion tests/metalsmith/feed-postcustomelements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
});
});
2 changes: 1 addition & 1 deletion tests/metalsmith/image-variation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/nunjucks/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Nunjucks filters", function () {

assert.equal(
"http://damien.pobel.fr/blog/slashes/",
filters.url(path, prefix)
filters.url(path, prefix),
);
});

Expand All @@ -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"),
);
});
});
Expand Down

0 comments on commit 4b386fb

Please sign in to comment.