From c94ec8bb8120aa9c92a376c318be17daa2b28d45 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Thu, 16 Jan 2025 10:08:09 -0500 Subject: [PATCH] Fix linting errors --- .eslintrc.json | 4 ++-- src/parser.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 79bff50..8c541d5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,8 +1,8 @@ { "env": { - "browser": true, "commonjs": true, - "es6": true + "es6": true, + "node": true }, "extends": "eslint:recommended", "globals": { diff --git a/src/parser.js b/src/parser.js index 99ca1ba..5fe5415 100644 --- a/src/parser.js +++ b/src/parser.js @@ -176,7 +176,7 @@ function populateFrontmatter(posts) { posts.forEach(post => { const frontmatter = {}; settings.frontmatter_fields.forEach(field => { - [key, alias] = field.split(':'); + const [key, alias] = field.split(':'); let frontmatterGetter = frontmatterGetters[key]; if (!frontmatterGetter) {