From 208b2d2f3b4d318b96c4f76be39902a2a1e6412e Mon Sep 17 00:00:00 2001 From: Dimitri B Date: Sat, 5 Jun 2021 21:15:35 +0200 Subject: [PATCH] Update eslint-formatter-pretty, remove workarounds for missing definitions --- package.json | 2 +- source/lib/formatter.ts | 1 - source/types.d.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 source/types.d.ts diff --git a/package.json b/package.json index cfc818a6..30d30732 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ ], "dependencies": { "@tsd/typescript": "~4.3.2", - "eslint-formatter-pretty": "^4.0.0", + "eslint-formatter-pretty": "^4.1.0", "globby": "^11.0.1", "meow": "^9.0.0", "path-exists": "^4.0.0", diff --git a/source/lib/formatter.ts b/source/lib/formatter.ts index 0d5f644e..3755f587 100644 --- a/source/lib/formatter.ts +++ b/source/lib/formatter.ts @@ -35,6 +35,5 @@ export default (diagnostics: Diagnostic[]): string => { entry.messages.push(diagnostic); } - // eslint-disable-next-line @typescript-eslint/no-unsafe-call return String(formatter([...fileMap.values()])); }; diff --git a/source/types.d.ts b/source/types.d.ts deleted file mode 100644 index 11ecc1ec..00000000 --- a/source/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'eslint-formatter-pretty';