feat: adding linter for commits
This commit is contained in:
17
node_modules/@commitlint/execute-rule/lib/index.js
generated
vendored
Normal file
17
node_modules/@commitlint/execute-rule/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.execute = void 0;
|
||||
exports.default = execute;
|
||||
async function execute(rule) {
|
||||
if (!Array.isArray(rule)) {
|
||||
return null;
|
||||
}
|
||||
const [name, config] = rule;
|
||||
const fn = executable(config) ? config : async () => config;
|
||||
return [name, await fn()];
|
||||
}
|
||||
exports.execute = execute;
|
||||
function executable(config) {
|
||||
return typeof config === 'function';
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
Reference in New Issue
Block a user