(flags: CliFlags)
| 508 | } |
| 509 | |
| 510 | function resolveDefaultConfig(flags: CliFlags): string { |
| 511 | // Resolve from the cli package itself first so the fallback works without |
| 512 | // @commitlint/config-conventional being installed in the linted project |
| 513 | // (e.g. `npx commitlint --default-config` or strictly isolated node_modules). |
| 514 | return resolveModulePath(defaultConfig, flags) || defaultConfig; |
| 515 | } |
| 516 | |
| 517 | function resolveModulePath(moduleName: string, flags: CliFlags): string | undefined { |
| 518 | return ( |
no test coverage detected