lib/rules/generator-star-spacing.js
function optionToDefinition(option, defaults) {
            if (!option) {
                return defaults;
            }

            return typeof option === "string"
                ? optionDefinitions[option]
                : Object.assign({}, defaults, option);
        }
function optionToDefinition(option, defaults) {
            if (!option) {
                return defaults;
            }

            return typeof option === "string"
                ? optionDefinitions[option]
                : Object.assign({}, defaults, option);
        }
function optionToDefinition ( option , defaults ) { if ( ! option ) { return defaults ; } return typeof option === "string" ? optionDefinitions [ option ] : Object . assign ( { } , defaults , option ) ; }
Returns resolved option definitions based on an option and defaults

@param {any} option - The option object or string value
@param {Object} defaults - The defaults to use if options are not present
@returns {Object} the resolved object definition
Returns resolved option definitions based on an option and defaults