UNPKG

@kcws/lintstaged-config

Version:
23 lines 605 B
import { getCommand } from "../utils/cmd"; /** * create command with input option * * @remarks * * Function type: {@link BaseActionFn} and * Option type: {@link IShellcheckOptions} * * @param option - customize option * @returns command * * @beta */ export const shellcheck = (option) => { var _a; const args = [getCommand("shellcheck")]; const files = (_a = option === null || option === void 0 ? void 0 : option.files) !== null && _a !== void 0 ? _a : []; if (files.length > 0) args.push(...files); return args.join(" "); }; //# sourceMappingURL=shellcheck.js.map