Radix should be specified
Part of the best practices https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt and https://eslint.org/docs/rules/radix
This commit is contained in:
parent
de6ffc2f76
commit
6b65640ac7
|
@ -277,10 +277,6 @@ module.exports = {
|
||||||
"prefer-template": "off",
|
"prefer-template": "off",
|
||||||
"quote-props": "off",
|
"quote-props": "off",
|
||||||
"quotes": "off",
|
"quotes": "off",
|
||||||
"radix": [
|
|
||||||
"error",
|
|
||||||
"as-needed"
|
|
||||||
],
|
|
||||||
"require-await": "error",
|
"require-await": "error",
|
||||||
"require-jsdoc": "off",
|
"require-jsdoc": "off",
|
||||||
"rest-spread-spacing": "error",
|
"rest-spread-spacing": "error",
|
||||||
|
|
|
@ -381,7 +381,7 @@ export default {
|
||||||
/** Converts from an integer to string. */
|
/** Converts from an integer to string. */
|
||||||
read: function(type, e) {
|
read: function(type, e) {
|
||||||
for (var i in type) {
|
for (var i in type) {
|
||||||
if (type[i] === parseInt(e)) {
|
if (type[i] === parseInt(e, 10)) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user