'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = formatJavaScript;

var _standalone = require('prettier/standalone');

var _parserBabylon = require('prettier/parser-babylon');

var _parserBabylon2 = _interopRequireDefault(_parserBabylon);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function formatJavaScript(code) {
  return (0, _standalone.format)(code, {
    printWidth: 55,
    semi: false,
    parser: 'babylon',
    plugins: [_parserBabylon2.default]
  });
}