From d9484adcc91cedcedf93652c5bfbc42ab4aef0be Mon Sep 17 00:00:00 2001 From: Matt J Cloyd Date: Tue, 11 Jun 2024 13:30:59 -0400 Subject: [PATCH] Ignore eslint warnings for now --- .eleventy.js | 8 ++++---- config/filters.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index df1d55a42..3c600675a 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -32,7 +32,7 @@ const { imageShortcode, imageWithClassShortcode } = require('./config'); const siteData = yaml.load(fs.readFileSync('./_data/site.yaml', 'utf8')); -module.exports = function (config) { +module.exports = function (config) { /* eslint-disable-line func-names */ // Set pathPrefix for site let pathPrefix = '/'; @@ -165,7 +165,7 @@ module.exports = function (config) { // https://github.com/markdown-it/markdown-it/blob/master/docs/architecture.md // Token methods: https://github.com/markdown-it/markdown-it/blob/master/lib/token.js#L125 const openDefaultRender = markdownLibrary.renderer.rules.link_open || - function(tokens, idx, options, env, self) { + function(tokens, idx, options, env, self) { /* eslint-disable-line func-names */ return self.renderToken(tokens, idx, options); }; @@ -201,7 +201,7 @@ module.exports = function (config) { }; const defaultHtmlBlockRender = markdownLibrary.renderer.rules.html_block || - function(tokens, idx, options, env, self) { + function(tokens, idx, options, env, self) { /* eslint-disable-line func-names */ return self.renderToken(tokens, idx, options); }; @@ -248,7 +248,7 @@ module.exports = function (config) { // Also need to add icon links to any html style links const inlineHTMLDefaultRender = markdownLibrary.renderer.rules.html_inline || - function(tokens, idx, options, env, self) { + function(tokens, idx, options, env, self) { /* eslint-disable-line func-names */ return self.renderToken(tokens, idx, options); }; diff --git a/config/filters.js b/config/filters.js index b0b6df389..89de2bb8f 100644 --- a/config/filters.js +++ b/config/filters.js @@ -43,7 +43,7 @@ const teamData = parse( const findPerson = (id) => { const maybePerson = teamData.find((person) => person.id === id); if (maybePerson === undefined) { - console.log(id, 'is undefined') + console.warn(id, 'is undefined') /* eslint-disable-line no-console */ } return maybePerson }