23 lines
433 B
JavaScript
23 lines
433 B
JavaScript
var options = {
|
|
fix: true
|
|
};
|
|
export default options;
|
|
/**
|
|
* Extend shorthand options.
|
|
*
|
|
* @param {object} options The options to extend.
|
|
* @return {object} The extended options.
|
|
*/
|
|
export function extendShorthandOptions(options) {
|
|
if (typeof options == 'boolean') {
|
|
options = {
|
|
fix: options
|
|
};
|
|
}
|
|
if (typeof options != 'object') {
|
|
options = {};
|
|
}
|
|
return options;
|
|
}
|
|
;
|