Skip to content

Commit

Permalink
Change code to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
asantos00 committed Jun 3, 2019
1 parent a64b15e commit 3618f97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ace/mode/yaml/yaml-lint.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.lint = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

},{}],2:[function(require,module,exports){
const fs = require('fs');
const merge = require('lodash.merge');
const yaml = require('js-yaml');
var fs = require('fs');
var merge = require('lodash.merge');
var yaml = require('js-yaml');

const DEFAULT_LINT_OPTION = {
var DEFAULT_LINT_OPTION = {
schema: 'DEFAULT_SAFE_SCHEMA'
};

function lint(content, opts) {

const options = merge({}, DEFAULT_LINT_OPTION, opts);
var options = merge({}, DEFAULT_LINT_OPTION, opts);

return new Promise((resolve, reject) => {
return new Promise(function(resolve, reject) {
try {
yaml.safeLoad(content, {
schema: yaml[options.schema]
Expand Down

0 comments on commit 3618f97

Please sign in to comment.