code: function (file, writeOptions) {
    writeOptions = writeOptions || {};
    var writeMethod = writeOptions.writeMethod || 'safeDump';
    return index[writeMethod](file, omit(writeOptions, ['writeMethod']));
  }
docs: /* istanbul ignore next import formattingPreflight from '../utils/formattingPreflight' import parseError from '../reporters/parseError'