typescript-eslint 2 (#462)

* typescript-eslint 2

* startsWith fixes

* padStart/padEnd
This commit is contained in:
Jaco Greeff
2019-08-30 12:24:16 +02:00
committed by GitHub
parent 67513ed7a4
commit 25fc033728
66 changed files with 185 additions and 174 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
* ```
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function stringShorten (_value?: any, prefixLength: number = 6): string {
export default function stringShorten (_value?: any, prefixLength = 6): string {
const value = `${_value}`;
if (value.length <= 2 + 2 * prefixLength) {