added TSLint for TypeScript code style checking, fixed associated errors
This commit is contained in:
parent
6a7722cadb
commit
41e7e559a6
43 changed files with 253 additions and 730 deletions
|
@ -104,11 +104,11 @@ export class DockerfileInfoImpl implements DockerfileInfo {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (baseImage.indexOf(this.config.getDomain() + '/') != 0) {
|
||||
if (baseImage.indexOf(`${this.config.getDomain()}/`) != 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return baseImage.substring(this.config.getDomain().length + 1);
|
||||
return baseImage.substring(<number>this.config.getDomain().length + 1);
|
||||
}
|
||||
|
||||
public getBaseImage(): string | null {
|
||||
|
@ -152,4 +152,4 @@ export class DockerfileInfoImpl implements DockerfileInfo {
|
|||
|
||||
return baseImageAndTag;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue