Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ruleFunction = (method, opts) => {
);

// validate the css root
validateResult(result, customProperties);
validateResult(root, result, customProperties);
}
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/lib/validate-result.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import validateDecl from './validate-decl.mjs';

// validate the css root
export default (result, customProperties) => {
export default (root, result, customProperties) => {
// validate each declaration
result.root.walkDecls(decl => {
root.walkDecls(decl => {
if (hasCustomPropertyReference(decl)) {
validateDecl(decl, { result, customProperties });
}
Expand Down