UNPKG

@kcws/lintstaged-config

Version:
27 lines 744 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shellcheck = void 0; const cmd_1 = require("../utils/cmd"); /** * create command with input option * * @remarks * * Function type: {@link BaseActionFn} and * Option type: {@link IShellcheckOptions} * * @param option - customize option * @returns command * * @beta */ const shellcheck = (option) => { var _a; const args = [(0, cmd_1.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(" "); }; exports.shellcheck = shellcheck; //# sourceMappingURL=shellcheck.js.map