Skip to content

Commit d2ba5fc

Browse files
committed
more logic around danger
1 parent d26de38 commit d2ba5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dangerfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function eslint(): Promise<void[]> {
1616
const allFiles = danger.git.created_files.concat(danger.git.modified_files);
1717
const cli = new CLIEngine({});
1818
// let eslint filter down to non-ignored, matching the extensions expected
19-
const filesToLint = allFiles.filter(f => !cli.isPathIgnored(f));
19+
const filesToLint = allFiles.filter(f => !cli.isPathIgnored(f) || !f.endsWith('lock') || !f.endsWith('json'));
2020
return Promise.all(filesToLint.map(f => lintFile(cli, f)));
2121
}
2222

0 commit comments

Comments
 (0)