Skip to content

Commit e09ff61

Browse files
crisbetotinayuangao
authored andcommitted
chore: fix lint warnings in build files (#1931)
Removes a few unused variables and formatting warnings in the Gulp-related build files.
1 parent 7816752 commit e09ff61

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

tools/gulp/gulpfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ import './tasks/lint';
99
import './tasks/release';
1010
import './tasks/serve';
1111
import './tasks/unit-test';
12-
import './tasks/docs';
12+
import './tasks/docs';

tools/gulp/tasks/e2e.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import {task, watch} from 'gulp';
22
import * as path from 'path';
3-
import gulpMerge = require('merge2');
4-
import gulpRunSequence = require('run-sequence');
53

64
import {SOURCE_ROOT, DIST_ROOT, PROJECT_ROOT} from '../constants';
75
import {
@@ -53,7 +51,7 @@ task(':e2e:done', () => process.exit(0));
5351
let stopE2eServer: () => void = null;
5452

5553
/** Starts up the e2e app server. */
56-
task(':serve:e2eapp', serverTask(false, (stream) => { stopE2eServer = () => stream.emit('kill') }));
54+
task(':serve:e2eapp', serverTask(false, stream => { stopE2eServer = () => stream.emit('kill'); }));
5755

5856
/** Terminates the e2e app server */
5957
task(':serve:e2eapp:stop', () => stopE2eServer());

tools/gulp/tasks/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {spawn} from 'child_process';
2-
import {existsSync, readdirSync, statSync} from 'fs';
2+
import {existsSync, statSync} from 'fs';
33
import {task} from 'gulp';
44
import gulpRunSequence = require('run-sequence');
55
import path = require('path');

tools/gulp/tasks/unit-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import gulp = require('gulp');
22
import path = require('path');
33
import gulpMerge = require('merge2');
44

5-
import {PROJECT_ROOT, DIST_COMPONENTS_ROOT} from '../constants';
5+
import {PROJECT_ROOT} from '../constants';
66
import {sequenceTask} from '../task_helpers';
77

88
const karma = require('karma');

0 commit comments

Comments
 (0)