style: scripts eslint

This commit is contained in:
tanjinzhou 2020-03-24 17:48:41 +08:00
parent 4f4f2a62db
commit ff812128e5

View File

@ -30,6 +30,7 @@ async function syncFiles(data = []) {
if (!fs.existsSync(toPath)) {
fse.ensureDirSync(toPath);
}
// eslint-disable-next-line no-console
console.log('update style: ', path.join(toPath, itemData.name.replace('.tsx', '.js')));
const content = Base64.decode(itemData.content);
fs.writeFileSync(path.join(toPath, itemData.name.replace('.tsx', '.js')), content);