Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { marked } = require('marked');
const DOMPurify = require('isomorphic-dompurify');
import { marked } from 'marked';
import DOMPurify from 'isomorphic-dompurify';
import ejsPlugin from '@11ty/eleventy-plugin-ejs';

const markdownToHtml = (markdown) => {
const html = marked.parse(markdown.replace(/\\/g, ''), {
Expand All @@ -14,7 +15,9 @@ const markdownToHtml = (markdown) => {
return cleanHtml;
};

module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {
eleventyConfig.addPlugin(ejsPlugin);

eleventyConfig.addPassthroughCopy({ 'src/public/': '/' });
eleventyConfig.addLayoutAlias('default', 'layout.njk');

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check commit message type
uses: gsactions/commit-message-checker@v1
uses: gsactions/commit-message-checker@v2
with:
pattern: '^(feat|fix|docs|style|refactor|test|chore).+'
error: 'Commit messages must begin with a valid commit type.'
Expand All @@ -19,11 +19,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 18
node-version: 22
- name: install npm dependencies
run: npm ci
- name: run linters
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const globals = require('globals');
const js = require('@eslint/js');
import globals from 'globals';
import js from '@eslint/js';

module.exports = [
export default [
js.configs.recommended,
{
languageOptions: {
Expand Down
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
environment = { NODE_VERSION = "22" }
Loading
Loading