mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Re-enable radix
This commit is contained in:
parent
6f030f7537
commit
f64698923f
2 changed files with 4 additions and 1 deletions
|
@ -230,7 +230,7 @@ module.exports = {
|
|||
}
|
||||
],
|
||||
"quote-props": "off",
|
||||
"radix": "off", //"error",
|
||||
"radix": "error",
|
||||
"require-await": "off",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue