canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.
31 lines (20 loc) • 902 B
JavaScript
;
var _chalk = require('chalk');
var _chalk2 = _interopRequireDefault(_chalk);
var _yargs = require('yargs');
var _yargs2 = _interopRequireDefault(_yargs);
var _commands = require('./commands');
var _bin = require('./../utilities/bin');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
process.on('unhandledRejection', function (reason, promise) {
/* eslint-disable no-console */
console.log(_chalk2.default.red('Unhandled'), reason, promise);
/* eslint-enable */
throw reason;
});
/* eslint-disable no-unused-expressions */
_yargs2.default
/* eslint-enable */
.exitProcess(false).fail(_bin.failHandler).help('help').strict().command('fix', 'Fix code format.', _commands.fixCommand).command('lint', 'Report code format errors.', _commands.lintCommand).argv;
//# sourceMappingURL=canonical.js.map