mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
This commit is contained in:
@@ -107,8 +107,8 @@ export function isDataURI(uri: string): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
const firstSegment = uri.trim().split(',')[0];
|
||||
return firstSegment && firstSegment.indexOf("data:") === 0 && firstSegment.indexOf('base64') >= 0;
|
||||
const firstSegment = uri.trim().split(",")[0];
|
||||
return firstSegment && firstSegment.indexOf("data:") === 0 && firstSegment.indexOf("base64") >= 0;
|
||||
}
|
||||
|
||||
export function mergeSort(arr, compareFunc) {
|
||||
|
||||
@@ -128,7 +128,7 @@ export module ad {
|
||||
var hashSet = new java.util.HashSet<string>();
|
||||
if (str !== undefined) {
|
||||
for (var element in str) {
|
||||
hashSet.add('' + str[element]);
|
||||
hashSet.add("" + str[element]);
|
||||
}
|
||||
}
|
||||
return hashSet;
|
||||
@@ -139,7 +139,7 @@ export module ad {
|
||||
if (stringSet !== undefined) {
|
||||
var it = stringSet.iterator();
|
||||
while (it.hasNext()) {
|
||||
var element = '' + it.next();
|
||||
var element = "" + it.next();
|
||||
arr.push(element);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user