lib/rules/no-use-before-define.js
function parseOptions(options) {
    let functions = true;
    let classes = true;
    let variables = true;
    let typedefs = true;

    if (typeof options === "string") {
        functions = options !== "nofunc";
    } else if (typeof options === "object" && options !== null) {
        functions = options.functions !== false;
        classes = options.classes !== false;
        variables = options.variables !== false;
        typedefs = options.typedefs !== false;
    }

    return { functions, classes, variables, typedefs };
}
function parseOptions(options) {
    let functions = true;
    let classes = true;
    let variables = true;
    let typedefs = true;

    if (typeof options === "string") {
        functions = options !== "nofunc";
    } else if (typeof options === "object" && options !== null) {
        functions = options.functions !== false;
        classes = options.classes !== false;
        variables = options.variables !== false;
        typedefs = options.typedefs !== false;
    }

    return { functions, classes, variables, typedefs };
}
function parseOptions ( options ) { let functions = true ; let classes = true ; let variables = true ; let typedefs = true ; if ( typeof options === "string" ) { functions = options !== "nofunc" ; } else if ( typeof options === "object" && options !== null ) { functions = options . functions !== false ; classes = options . classes !== false ; variables = options . variables !== false ; typedefs = options . typedefs !== false ; } return { functions , classes , variables , typedefs } ; }
Parses a given value as options.

@param {any} options - A value to parse.
@returns {Object} The parsed options.
Parses a given value as options .