diff --git a/public/app/plugins/panel/table/renderer.ts b/public/app/plugins/panel/table/renderer.ts index 120ff80b6be..c25e37357cb 100644 --- a/public/app/plugins/panel/table/renderer.ts +++ b/public/app/plugins/panel/table/renderer.ts @@ -185,7 +185,7 @@ export class TableRenderer { } const numericValue = Number(value); - if (numericValue === NaN) { + if (isNaN(numericValue)) { return; } diff --git a/tslint.json b/tslint.json index f14078ee3aa..f53eb541643 100644 --- a/tslint.json +++ b/tslint.json @@ -59,7 +59,15 @@ "variable-declaration": "nospace" } ], - "variable-name": [true, "ban-keywords"], + "variable-name": [ + true, + "check-format", + "ban-keywords", + "allow-leading-underscore", + "allow-trailing-underscore", + "allow-pascal-case" + ], + "use-isnan": true, "whitespace": [true, "check-branch", "check-decl", "check-type", "check-preblock"] } }