Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit f805bf6

Browse files
huerlisidanbucholtz
authored andcommitted
chore(linting): fix all linting issues (#721)
1 parent cf107ed commit f805bf6

File tree

8 files changed

+8
-11
lines changed

8 files changed

+8
-11
lines changed

src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function buildWorker(context: BuildContext) {
3636
// load any 100% required files to ensure they exist
3737
return validateRequiredFilesExist();
3838
})
39-
.then(([appEntryPointContents, tsConfigContents]) => {
39+
.then(([_, tsConfigContents]) => {
4040
return validateTsConfigSettings(tsConfigContents);
4141
})
4242
.then(() => {

src/cleancss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function cleancssWorker(context: BuildContext, configFile: string): Promi
2424
const config: CleanCssConfig = fillConfigDefaults(configFile, taskInfo.defaultConfigFile);
2525
const srcFile = join(context.buildDir, config.sourceFileName);
2626
const destFilePath = join(context.buildDir, config.destFileName);
27-
Logger.debug(`[Clean CSS] cleancssWorker: reading source file ${srcFile}`)
27+
Logger.debug(`[Clean CSS] cleancssWorker: reading source file ${srcFile}`);
2828
return readFileAsync(srcFile).then(fileContent => {
2929
return runCleanCss(config, fileContent);
3030
}).then(minifiedContent => {

src/deep-linking/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function extractDeepLinkPathData(appNgModuleFileContent: string) {
4040
function extractRegexContent(content: string, regex: RegExp) {
4141
let match: RegExpExecArray = null;
4242
const results: string[] = [];
43-
while ((match = regex.exec(content))){
43+
while ((match = regex.exec(content))) {
4444
if (!match) {
4545
break;
4646
}
@@ -70,4 +70,4 @@ export function getDeepLinkData(appNgModuleFilePath: string, appNgModuleFileCont
7070

7171
const LINKS_REGEX = /links\s*?:\s*\[([\s|\S]*)\]/igm;
7272
const LOAD_CHILDREN_REGEX = /loadChildren\s*?:\s*?['"`]\s*?(.*?)['"`]/igm;
73-
const NAME_REGEX = /name\s*?:\s*?['"`]\s*?(.*?)['"`]/igm;
73+
const NAME_REGEX = /name\s*?:\s*?['"`]\s*?(.*?)['"`]/igm;

src/dev-server/lab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export let ApiCordovaProject = (req: any, res: any) => {
1515
}, (config: CordovaProject) => {
1616
res.json(config);
1717
});
18-
}
18+
};

src/serve.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('test serve', () => {
6767
expect(httpServer.createHttpServer).toHaveBeenCalledWith(configResults);
6868
expect(open.default).toHaveBeenCalledWith('http://localhost:8100?ionicplatform=android', null);
6969
});
70-
})
70+
});
7171

7272
it('all args should be set in the config object and should be passed on to server functions', () => {
7373
config.setProcessArgs([]);

src/uglifyjs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import * as uglify from 'uglify-js';
33

44
import { Logger } from './logger/logger';
55
import { fillConfigDefaults, generateContext, getUserConfigFile } from './util/config';
6-
import * as Constants from './util/constants';
76
import { BuildError } from './util/errors';
8-
import { getBooleanPropertyValue, writeFileAsync } from './util/helpers';
7+
import { writeFileAsync } from './util/helpers';
98
import { BuildContext, TaskInfo } from './util/interfaces';
109
import { runWorker } from './worker-client';
1110

src/util/typescript-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ export function checkIfFunctionIsCalled(filePath: string, fileContent: string, f
148148
const allCalls = findNodes(sourceFile, sourceFile, SyntaxKind.CallExpression, true) as CallExpression[];
149149
const functionCallList = allCalls.filter(call => call.expression && call.expression.kind === SyntaxKind.Identifier && (call.expression as Identifier).text === functionName);
150150
return functionCallList.length > 0;
151-
}
151+
}

src/webpack/ionic-environment-plugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import { relative, sep } from 'path';
21
import { BuildContext, HydratedDeepLinkConfigEntry } from '../util/interfaces';
32
import { Logger } from '../logger/logger';
43
import { getInstance } from '../util/hybrid-file-system-factory';
5-
import { WatchMemorySystem } from './watch-memory-system';
64
import { createResolveDependenciesFromContextMap } from './util';
75

86
export class IonicEnvironmentPlugin {

0 commit comments

Comments
 (0)