Skip to content

Commit

Permalink
fix: call stylelint.utils.validateOptions with the right arguments, c…
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Oct 19, 2024
1 parent 41ee842 commit cade41c
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 1,240 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ module.exports = stylelint.createPlugin(ruleName, (options) => {
}

return (root, result) => {
const validOptions = stylelint.utils.validateOptions({
ruleName,
const validOptions = stylelint.utils.validateOptions(
result,
actual: options,
});
ruleName,
{ actual: options },
);

if (!validOptions) {
return;
Expand Down
Loading

0 comments on commit cade41c

Please sign in to comment.