MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / getPatternIDs

Function getPatternIDs

@commitlint/config-patternplate/index.js:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12async function getPatternIDs() {
13 const root = path.resolve(process.cwd(), "./patterns");
14 const pattern = path.resolve(root, "**/pattern.json");
15 const files = [];
16 for await (const result of glob(pattern)) {
17 files.push(pathToId(root, result));
18 }
19 return files;
20}
21
22export default merge(configAngular, {
23 rules: {

Callers 1

index.jsFile · 0.85

Calls 2

pathToIdFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected