Re-enable radix

This commit is contained in:
Oliver Blanthorn 2020-06-18 22:52:49 +01:00
parent 6f030f7537
commit f64698923f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 4 additions and 1 deletions

View file

@ -230,7 +230,7 @@ module.exports = {
}
],
"quote-props": "off",
"radix": "off", //"error",
"radix": "error",
"require-await": "off",
"space-before-function-paren": [
"error",

View file

@ -819,6 +819,9 @@ function pushKey(key) {
/** Covert to char and pushKey(). This is needed because ex commands ignore whitespace. */
function pushKeyCodePoint(codepoint) {
// Codepoints can be hex or base-10
// We know we're not running in old browsers so this is safe
// eslint-disable-next-line radix
const key = String.fromCodePoint(parseInt(codepoint, 0))
return pushKey(key)
}