git-validator
Version:
Git hooks and code style validator.
8 lines (6 loc) • 299 B
JavaScript
// @ts-check
import path from "node:path";
import { dir, resolveConfig } from "../utils.js";
const cliPath = path.resolve(dir(import.meta.url), "..", "bin", "cli.js");
const defaultConfig = { "*": [`${cliPath} lint`] };
export default (await resolveConfig("lint-staged"))?.config ?? defaultConfig;