refactor(tree-wide): optimize and clean up svgs (#693)
This commit is contained in:
1 parent
f9e3916bd0
commit
051354a2e9
23 files changed
+424
-182
No files matched your search
@@ -10,9 +10,17 @@ import "npm:stylelint-config-recommended";
|
||||
import { REPO_ROOT } from "@/deps.ts";
|
||||
import { log } from "@/lint/logger.ts";
|
||||
|
||||
export const lint = (entry: WalkEntry, content: string, fix: boolean) =>
|
||||
stylelint.lint({ files: entry.path, fix })
|
||||
.then(({ results }) => {
|
||||
export const lint = (
|
||||
entry: WalkEntry,
|
||||
content: string,
|
||||
fix: boolean,
|
||||
config: stylelint.Config,
|
||||
) =>
|
||||
stylelint.lint({ code: content, config, fix })
|
||||
.then(({ results, code }) => {
|
||||
if (code) {
|
||||
Deno.writeTextFileSync(entry.path, code);
|
||||
}
|
||||
results.map((result) => {
|
||||
result.warnings.map((warning) => {
|
||||
// Some cleanup for fancier logging - dims the rule name.
|
||||
|
||||
Reference in new issue
Block a user