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:
parent
5995959d77
commit
3001676e0b
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user