From 786bec76e9a87b0bcfb2146603e040e93484c6ce Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Wed, 16 Oct 2024 02:01:27 +0200 Subject: [PATCH] style: :wrench: use short form of arrow function syntax --- eleventy.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index db01fdb..040fdf7 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -27,9 +27,7 @@ export default async function (eleventyConfig) { // eleventyConfig.addPassthroughCopy('./src/img/'); // eleventyConfig.addWatchTarget('./src/img/'); - eleventyConfig.addCollection('posts', (collection) => { - return collection.getFilteredByGlob('./src/posts/*.md'); - }); + eleventyConfig.addCollection('posts', (collection) => collection.getFilteredByGlob('./src/posts/*.md')); eleventyConfig.addPlugin(IdAttributePlugin); eleventyConfig.addPlugin(eleventyPluginCiu);