canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.
25 lines (17 loc) • 564 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _formatters = require('./../formatters');
exports.default = function () {
var name = arguments.length <= 0 || arguments[0] === undefined ? 'table' : arguments[0];
if (name === 'checkstyle') {
return _formatters.checkstyleFormatter;
}
if (name === 'table') {
return _formatters.tableFormatter;
}
throw new Error('Unknown formatter ("' + name + '").');
};
module.exports = exports['default'];
//# sourceMappingURL=getFormatter.js.map