'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
var getOptions = exports.getOptions = function getOptions(options, onLintedCode) {
  var defaults = {
    lineNumbers: true,
    tabSize: 2,
    fixedGutter: true,
    mode: 'javascript',
    matchBrackets: true,
    autoCloseBrackets: true,
    continueComments: 'Enter',
    extraKeys: {
      'Cmd-/': 'toggleComment'
    },
    lineWrapping: true,
    cursorHeight: 0.85,
    gutters: ['CodeMirror-lint-markers'],
    lint: {
      onUpdateLinting: function onUpdateLinting(annotationsNotSorted, annotations, cm) {
        if (!annotationsNotSorted.length) {
          onLintedCode(annotationsNotSorted, annotations, cm);
        }
      },
      options: {
        ecmaVersion: 6
      }
    }
  };

  return Object.assign({}, defaults, options);
};