build: refactor & use handlebars for generate templating (#343)
This commit is contained in:
1 parent
b1f864c1c8
commit
f48eba6354
23 files changed
+681
-408
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { deepMerge } from "std/collections/mod.ts";
|
||||
import { deepMerge } from "std/collections/deep_merge.ts";
|
||||
|
||||
import chalk from "chalk";
|
||||
import * as color from "std/fmt/colors.ts";
|
||||
import stylelint from "npm:stylelint";
|
||||
import stylelintConfigStandard from "npm:stylelint-config-standard";
|
||||
import stylelintConfigRecommended from "npm:stylelint-config-recommended";
|
||||
@@ -184,7 +184,7 @@ export const lint = (entry: WalkEntry, content: string, fix: boolean) => {
|
||||
// some cleanup for fancier logging, dims the rule name
|
||||
const message = warning.text?.replace(
|
||||
new RegExp(`\\(?${warning.rule}\\)?`),
|
||||
chalk.dim(`(${warning.rule})`),
|
||||
color.dim(`(${warning.rule})`),
|
||||
) ?? "unspecified stylelint error";
|
||||
|
||||
log(message, {
|
||||
|
||||
Reference in new issue
Block a user