Skip to content

Commit

Permalink
ci(lint): add an optional arg for subdir selection
Browse files Browse the repository at this point in the history
It's gross but it works
  • Loading branch information
nekowinston committed Nov 18, 2023
1 parent 2015794 commit 952d61a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lint/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { verifyMetadata } from "./metadata.ts";
import { lint } from "./stylelint.ts";

const flags = parseFlags(Deno.args, { boolean: ["fix"] });
const stylesheets = walk(join(REPO_ROOT, "styles"), {
const subDir = flags._[0]?.toString() ?? "";
const stylesheets = walk(join(REPO_ROOT, "styles", subDir), {
includeFiles: true,
includeDirs: false,
includeSymlinks: false,
Expand Down

0 comments on commit 952d61a

Please sign in to comment.