(flags: CliFlags)
| 553 | } |
| 554 | |
| 555 | function resolveDefaultConfig(flags: CliFlags): string { |
| 556 | // Resolve from the cli package itself first so the fallback works without |
| 557 | // @commitlint/config-conventional being installed in the linted project |
| 558 | // (e.g. `npx commitlint --default-config` or strictly isolated node_modules). |
| 559 | return resolveModulePath(defaultConfig, flags) || defaultConfig; |
| 560 | } |
| 561 | |
| 562 | function resolveModulePath(moduleName: string, flags: CliFlags): string | undefined { |
| 563 | return ( |
no test coverage detected