app/javascript/alchemy_admin/hotkeys.js
Function default
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
export default function (scope = document) {
// The scope can be a jQuery object because we still use jQuery in Alchemy.Dialog.
if (scope instanceof jQuery) {
scope = scope[0]
}