From 7534ea4287abfa772779944839311acc7dcdd354 Mon Sep 17 00:00:00 2001 From: Julian Cataldo Date: Sat, 29 Oct 2022 22:11:11 +0200 Subject: [PATCH] fix: allow empty settings for runtime plugin For when only using `$schema` local association with pipeline. --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 3f3b590..4d41a9f 100644 --- a/index.ts +++ b/index.ts @@ -315,7 +315,7 @@ const remarkFrontmatterSchema = lintRule( url, origin: 'remark-lint:frontmatter-schema', }, - async (ast: Root, vFile: VFile, settings: Settings) => { + async (ast: Root, vFile: VFile, settings: Settings = {}) => { /* Handle only if the current Markdown file has a frontmatter section */ if (ast.children.length) { // IDEA: Is the `0` due to the fact that `remark-frontmatter`