Commit f8c2b23c by Patrick O'Carroll Committed by Torkel Ödegaard

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

parent ebf253d2
......@@ -185,7 +185,7 @@ export class TableRenderer {
}
const numericValue = Number(value);
if (numericValue === NaN) {
if (isNaN(numericValue)) {
return;
}
......
......@@ -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"]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment