Skip to content

Commit 81ed882

Browse files
committed
style: lint
1 parent 848a2d6 commit 81ed882

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eleventy.config.cjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TocPlugin = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.
1818
const markdownItAnchor = require('markdown-it-anchor');
1919

2020
/** @param {import('@11ty/eleventy/src/UserConfig')} eleventyConfig */
21-
module.exports = function (eleventyConfig) {
21+
module.exports = function(eleventyConfig) {
2222
eleventyConfig.amendLibrary('md', md => md.use(markdownItAnchor));
2323

2424
eleventyConfig.setQuietMode(true);
@@ -49,10 +49,10 @@ module.exports = function (eleventyConfig) {
4949
eleventyConfig.addPlugin(TodosPlugin);
5050

5151
/** format date strings */
52-
eleventyConfig.addFilter('prettyDate', function (dateStr, options = {}) {
52+
eleventyConfig.addFilter('prettyDate', function(dateStr, options = {}) {
5353
const { dateStyle = 'medium' } = options;
5454
return new Intl.DateTimeFormat('en-US', { dateStyle })
55-
.format(new Date(dateStr));
55+
.format(new Date(dateStr));
5656
});
5757

5858
/** fancy syntax highlighting with diff support */
@@ -86,8 +86,8 @@ module.exports = function (eleventyConfig) {
8686
return null;
8787
} else {
8888
return eleventyConfig.javascriptFunctions
89-
.slug($.text())
90-
.replace(/[&,+()$~%.'":*?!<>{}]/g, '');
89+
.slug($.text())
90+
.replace(/[&,+()$~%.'":*?!<>{}]/g, '');
9191
}
9292
},
9393
});

0 commit comments

Comments
 (0)