mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
02e77afcd1
commit
c6dce043a7
406 files changed
+1590
-1580
No files matched your search
@@ -35,7 +35,7 @@ describe("tuple tests", () => {
|
||||
|
||||
expect(i.next()).toEqual({
|
||||
done: false,
|
||||
value: [1, 2]
|
||||
value: [1, 2],
|
||||
});
|
||||
expect(i.next()).toEqual({
|
||||
done: true,
|
||||
@@ -48,7 +48,7 @@ describe("tuple tests", () => {
|
||||
|
||||
expect(i.next()).toEqual({
|
||||
done: false,
|
||||
value: [1, 2]
|
||||
value: [1, 2],
|
||||
});
|
||||
expect(i.next()).toEqual({
|
||||
done: true,
|
||||
|
||||
@@ -29,5 +29,5 @@ export const base64 = {
|
||||
},
|
||||
encode(data: string) {
|
||||
return Utf8.parse(data).toString(Base64);
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -33,7 +33,7 @@ export function unitsToBytes(value: string) {
|
||||
const index = suffixes.indexOf(suffix);
|
||||
|
||||
return parseInt(
|
||||
(parseFloat(value) * Math.pow(base, index + 1)).toFixed(1)
|
||||
(parseFloat(value) * Math.pow(base, index + 1)).toFixed(1),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ export function downloadFile({ url, timeout, gzip = true }: DownloadFileOptions)
|
||||
promise,
|
||||
cancel() {
|
||||
req.abort();
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -62,6 +62,6 @@ export function downloadJson(args: DownloadFileOptions): DownloadFileTicket<any>
|
||||
|
||||
return {
|
||||
promise: promise.then(res => JSON.parse(res.toString())),
|
||||
...rest
|
||||
...rest,
|
||||
};
|
||||
}
|
||||
@@ -100,7 +100,7 @@ export class HashSet<T> implements Set<T> {
|
||||
return index < values.length
|
||||
? { value: [keys[index], values[index]], done: false }
|
||||
: { done: true, value: undefined };
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ export class HashSet<T> implements Set<T> {
|
||||
return nextIndex < observableValues.length
|
||||
? { value: observableValues[nextIndex++], done: false }
|
||||
: { done: true, value: undefined };
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ export class ObservableHashSet<T> implements Set<T>, IInterceptable<ISetWillChan
|
||||
return index < values.length
|
||||
? { value: [keys[index], values[index]], done: false }
|
||||
: { done: true, value: undefined };
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ export class ObservableHashSet<T> implements Set<T>, IInterceptable<ISetWillChan
|
||||
return nextIndex < observableValues.length
|
||||
? { value: observableValues[nextIndex++], done: false }
|
||||
: { done: true, value: undefined };
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ export function sortCharts(charts: RawHelmChart[]) {
|
||||
(chart as ExtendedHelmChart).__version = __version;
|
||||
|
||||
return chart as ExtendedHelmChart;
|
||||
})
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user