summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/prefer-numeric-literals.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-11-25 23:18:02 -0500
committercjihrig <cjihrig@gmail.com>2017-11-27 21:58:07 -0500
commitc2d738db8053a0e090aabbeeb088b34c3da7b7ad (patch)
tree3e8760805c82f61936df894149c95a5d2c0320ff /tools/eslint/lib/rules/prefer-numeric-literals.js
parenta177708e338cc770f15405d5b706da094f101aa0 (diff)
downloadnode-new-c2d738db8053a0e090aabbeeb088b34c3da7b7ad.tar.gz
tools: update to ESLint 4.12.0
PR-URL: https://github.com/nodejs/node/pull/16948 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/prefer-numeric-literals.js')
-rw-r--r--tools/eslint/lib/rules/prefer-numeric-literals.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/prefer-numeric-literals.js b/tools/eslint/lib/rules/prefer-numeric-literals.js
index 08deedd624..929e660c66 100644
--- a/tools/eslint/lib/rules/prefer-numeric-literals.js
+++ b/tools/eslint/lib/rules/prefer-numeric-literals.js
@@ -96,8 +96,10 @@ module.exports = {
if (+(newPrefix + node.arguments[0].value) !== parseInt(node.arguments[0].value, node.arguments[1].value)) {
- // If the newly-produced literal would be invalid, (e.g. 0b1234),
- // or it would yield an incorrect parseInt result for some other reason, don't make a fix.
+ /*
+ * If the newly-produced literal would be invalid, (e.g. 0b1234),
+ * or it would yield an incorrect parseInt result for some other reason, don't make a fix.
+ */
return null;
}
return fixer.replaceText(node, prefixMap[node.arguments[1].value] + node.arguments[0].value);