Skip to content

Commit 5c0c275

Browse files
committed
ignore 'cz' completely (if not lighthouse)
1 parent f158a1c commit 5c0c275

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ async function init(prData) {
4545
}
4646

4747
// FIXME: can't write to disk on now.sh. will have to find a workaround.
48+
// https://github.com/paulirish/commitlintbot/issues/3
4849
if (false && czConfigContent) {
4950
// unfortunately this file needs to be read off of disk
5051
fs.writeFileSync(czConfigPath, czConfigContent);
5152
lintOpts.cz = true;
5253
}
54+
// FIXME: currently have to ignore extends:['cz'] in the config.
55+
if (!githubData.repo.includes('lighthouse')) {
56+
lintOpts.clintConfig.extends = lintOpts.clintConfig.extends.filter(e => e !== 'cz');
57+
}
5358

5459
const {report, reportObj} = await lint(title, lintOpts);
5560

0 commit comments

Comments
 (0)