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 authored and Martin Benndorf committed Oct 17, 2024
1 parent 41ee842 commit 73c73bf
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 62 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
94 changes: 37 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"jest-preset-stylelint": "7.1.0",
"lint-staged": "15.2.10",
"npm-check-updates": "17.1.3",
"stylelint": "16.9.0"
"stylelint": "16.10.0"
},
"jest": {
"runner": "jest-light-runner",
Expand Down

0 comments on commit 73c73bf

Please sign in to comment.