mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
added rule use-isnan and and updated file to follow new rule (#13117)
This commit is contained in:
parent
ebf253d26a
commit
f8c2b23c86
@ -185,7 +185,7 @@ export class TableRenderer {
|
||||
}
|
||||
|
||||
const numericValue = Number(value);
|
||||
if (numericValue === NaN) {
|
||||
if (isNaN(numericValue)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
10
tslint.json
10
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"]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user