chore: update tslint rules (#7391)

This commit is contained in:
Manol Donev
2019-06-26 15:13:48 +03:00
committed by GitHub
parent 92370279d8
commit 4f39fb728b
399 changed files with 3101 additions and 2210 deletions

View File

@ -83,6 +83,7 @@ function _generateAmpMap(): any {
ampCodes.set(key, objCodes[key]);
}
}
return ampCodes;
}
@ -101,6 +102,7 @@ function _HandleAmpEntities(found: string, decimalValue: string, hexValue: strin
if (res) {
return String.fromCharCode(res);
}
// Invalid word; so we just return it
return found;
}
@ -109,7 +111,7 @@ function _HandleAmpEntities(found: string, decimalValue: string, hexValue: strin
}
return String.fromCharCode(parseInt(hexValue, 16));
};
}
export class XmlParser implements definition.XmlParser {
//TODO: Add option to configure whether the parser should report ignorable whitespace, i.e. document formatting whitespace.
@ -244,7 +246,7 @@ export class XmlParser implements definition.XmlParser {
}
private _resolveNamespace(fullName: string): { prefix: string; namespace: string; name: string; } {
const result: { prefix: string; namespace: string; name: string; } = { prefix: undefined, namespace: undefined, name: undefined }
const result: { prefix: string; namespace: string; name: string; } = { prefix: undefined, namespace: undefined, name: undefined };
result.prefix = "";
if (fullName.indexOf(":") !== -1) {
const split = fullName.split(":");
@ -266,6 +268,7 @@ export class XmlParser implements definition.XmlParser {
if (result.prefix === key) {
result.namespace = stackEntry[key];
return result;
}
}