提交 77206a55 编写于 作者: J Johannes Rieken

more hygiene

上级 45645e08
......@@ -164,21 +164,21 @@ const hygiene = exports.hygiene = (some, options) => {
this.emit('data', file);
});
const formatting = es.through(function (file) {
const formatting = es.map(function (file, cb) {
tsfmt.processString(file.path, file.contents.toString('utf8'), {
verify: true,
tsfmt: true,
verbose: true
// verbose: true
}).then(result => {
if (result.error) {
console.error(file.relative + ': ' + result.message);
errorCount++;
}
this.emit('data', file);
cb(null, file);
}, err => {
this.emit('error', err);
cb(err);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册