Skip to content

Commit ad067a6

Browse files
committed
dangerfile
1 parent d3e1004 commit ad067a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dangerfile.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import tslint from 'danger-plugin-tslint';
66
import { prettyResults } from 'danger-plugin-tslint/dist/prettyResults';
77
import { CLIEngine } from 'eslint';
88

9-
const PACKAGES = ['apm', 'integrations', 'node', 'utils'];
9+
const PACKAGES = ['integrations', 'node'];
1010
const EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx'];
1111

1212
/**
@@ -15,13 +15,15 @@ const EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx'];
1515
*/
1616
async function eslint(): Promise<void[]> {
1717
const allFiles = danger.git.created_files.concat(danger.git.modified_files);
18+
// eslint-disable-next-line deprecation/deprecation
1819
const cli = new CLIEngine({});
1920
// let eslint filter down to non-ignored, matching the extensions expected
2021
const filesToLint = allFiles.filter(f => !cli.isPathIgnored(f) && EXTENSIONS.some(ext => f.endsWith(ext)));
2122
return Promise.all(filesToLint.map(f => lintFile(cli, f)));
2223
}
2324

2425
/** JSDoc */
26+
// eslint-disable-next-line deprecation/deprecation
2527
async function lintFile(linter: CLIEngine, path: string): Promise<void> {
2628
const contents = await danger.github.utils.fileContents(path);
2729
const report = linter.executeOnText(contents, path);

0 commit comments

Comments
 (0)