Skip to content

Commit d538cc3

Browse files
authored
chore: update to eleventy v3 (#107)
* chore: update globals * chore: update eleventy * refactor: use ES module syntax in configs and JS files
1 parent 8a7aff2 commit d538cc3

File tree

7 files changed

+1501
-1138
lines changed

7 files changed

+1501
-1138
lines changed

.eleventy.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
module.exports = function (eleventyConfig) {
1+
export default function(eleventyConfig) {
22
eleventyConfig.addPassthroughCopy({ 'src/public': '/' });
33
eleventyConfig.addLayoutAlias('default', 'layout.njk');
4+
};
45

5-
return {
6-
dir: {
7-
input: 'pages',
8-
output: 'dist',
9-
includes: '../src',
10-
},
11-
markdownTemplateEngine: 'njk',
12-
};
6+
export const config = {
7+
dir: {
8+
input: 'pages',
9+
output: 'dist',
10+
includes: '../src',
11+
},
12+
markdownTemplateEngine: 'njk',
1313
};

eslint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const globals = require('globals');
2-
const js = require('@eslint/js');
1+
import globals from 'globals';
2+
import js from '@eslint/js';
33

4-
module.exports = [
4+
export default [
55
js.configs.recommended,
66
{
77
languageOptions: {

0 commit comments

Comments
 (0)