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",
|
||||
"quote-props": "off",
|
||||
"quotes": "off",
|
||||
"radix": [
|
||||
"error",
|
||||
"as-needed"
|
||||
],
|
||||
"require-await": "error",
|
||||
"require-jsdoc": "off",
|
||||
"rest-spread-spacing": "error",
|
||||
|
@ -327,12 +323,12 @@ module.exports = {
|
|||
"never"
|
||||
],
|
||||
|
||||
// Custom silencers:
|
||||
// Custom silencers:
|
||||
"camelcase": 0,
|
||||
"no-debugger": 0,
|
||||
"require-await": 0,
|
||||
"no-multi-assign": 0,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-restricted-syntax": 0,
|
||||
"one-var-declaration-per-line": 0,
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ export default {
|
|||
/** Converts from an integer to string. */
|
||||
read: function(type, e) {
|
||||
for (var i in type) {
|
||||
if (type[i] === parseInt(e)) {
|
||||
if (type[i] === parseInt(e, 10)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user