Skip to content

Commit

Permalink
Give rules access to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko authored Feb 17, 2022
1 parent 773e561 commit 7d0aeee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/unified-lint-rule/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function lintRule(meta, rule) {
return plugin

/** @type {import('unified').Plugin<[unknown]|Array<void>>} */
function plugin(raw) {
function plugin(raw, fileSet) {
const [severity, options] = coerce(ruleId, raw)

if (!severity) return
Expand Down Expand Up @@ -67,7 +67,7 @@ export function lintRule(meta, rule) {
}

next()
})(tree, file, options)
}).call(this, tree, file, options, fileSet)
}
}
}
Expand Down

0 comments on commit 7d0aeee

Please sign in to comment.