Skip to content

Commit

Permalink
fix: allow empty settings for runtime plugin
Browse files Browse the repository at this point in the history
For when only using `$schema` local association
with pipeline.
  • Loading branch information
JulianCataldo committed Oct 29, 2022
1 parent 80641ec commit 7534ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Expand Up @@ -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`
Expand Down

0 comments on commit 7534ea4

Please sign in to comment.