1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

eslint fixes

This commit is contained in:
ido 2015-08-30 11:45:35 +03:00
parent 5995959d77
commit 3001676e0b

View File

@ -585,13 +585,14 @@ function convertRT(html, reportContext, options) {
vars = _(defines).map(function (reqVar, reqPath) {
return 'import ' + reqVar + " from '" + reqPath + "';";
}).join('\n');
} else {
} else {
vars = _(defines).map(function (reqVar, reqPath) {
return 'var ' + reqVar + " = require('" + reqPath + "');";
}).join('\n');
}
if (options.flow){
vars = '/* @flow */\n' + vars
if (options.flow) {
vars = '/* @flow */\n' + vars;
}
var data = {body: body, injectedFunctions: '', requireNames: requireVars, requirePaths: requirePaths, vars: vars, name: options.name};
data.injectedFunctions = context.injectedFunctions.join('\n');