From ad0a88954862c4ba86e678225f48c3a067d99c77 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 28 Feb 2021 18:22:44 +0100 Subject: [PATCH] Enabled @typescript-eslint/no-base-to-string eslint rule again --- .eslintrc | 3 +-- src/utils/helpers/charts.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index ce1b40c7..8555963a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -17,11 +17,10 @@ "rules": { "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-member-access": "off", + "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/naming-convention": "off", - "@typescript-eslint/ban-types": "off", - "@typescript-eslint/no-base-to-string": "off", "no-nonoctal-decimal-escape": "off" } } diff --git a/src/utils/helpers/charts.ts b/src/utils/helpers/charts.ts index fcc6f1fb..e47d1b22 100644 --- a/src/utils/helpers/charts.ts +++ b/src/utils/helpers/charts.ts @@ -26,5 +26,5 @@ export const renderDoughnutChartLabel = ( && datasets?.[datasetIndex]?.data?.[index] || ''; - return `${datasetLabel}: ${prettify(Number(value))}`; + return `${datasetLabel}: ${prettify(Number(value))}`; // eslint-disable-line @typescript-eslint/no-base-to-string };