added rule use-isnan and and updated file to follow new rule (#13117)

This commit is contained in:
Patrick O'Carroll 2018-09-03 13:31:37 +02:00 committed by Torkel Ödegaard
parent ebf253d26a
commit f8c2b23c86
2 changed files with 10 additions and 2 deletions

View File

@ -185,7 +185,7 @@ export class TableRenderer {
}
const numericValue = Number(value);
if (numericValue === NaN) {
if (isNaN(numericValue)) {
return;
}

View File

@ -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"]
}
}