Skip to content

Commit

Permalink
Updated some validation dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Jan 3, 2024
1 parent ee7e10e commit a22c94a
Show file tree
Hide file tree
Showing 4 changed files with 1,171 additions and 1,198 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"selector-id-pattern": null,
"scss/at-import-no-partial-leading-underscore": null,
"scss/at-import-partial-extension": "always",
"scss/dollar-variable-empty-line-before": null
"scss/dollar-variable-empty-line-before": null,
"scss/load-no-partial-leading-underscore": null
}
}
8 changes: 4 additions & 4 deletions build/stylelint.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export default async function* stylelint_(files, options = {})
});

let result = await stylelint.lint(options);
if (options.fix && result.output)
yield new MemoryFile(file.path, result.output);
if (options.fix && result.code)
yield new MemoryFile(file.path, result.code);
else
{
yield file;
if (result.output)
console.log(result.output);
if (result.report)
console.log(result.report);
}
if (result.errored)
seenErrors = true;
Expand Down
Loading

0 comments on commit a22c94a

Please sign in to comment.