fix jshint errors
This commit is contained in:
parent
e09312f127
commit
65ba4d35e7
@ -43,7 +43,7 @@ File.prototype.getModuleFormatter = function (type) {
|
|||||||
var ModuleLoader = transform.moduleFormatters[type];
|
var ModuleLoader = transform.moduleFormatters[type];
|
||||||
|
|
||||||
if (!ModuleLoader) {
|
if (!ModuleLoader) {
|
||||||
var loc = util.resolve(type)
|
var loc = util.resolve(type);
|
||||||
if (loc) ModuleLoader = require(loc);
|
if (loc) ModuleLoader = require(loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,9 +104,7 @@ File.prototype.generate = function () {
|
|||||||
var opts = this.opts;
|
var opts = this.opts;
|
||||||
var ast = this.ast;
|
var ast = this.ast;
|
||||||
|
|
||||||
var printOpts = {
|
var printOpts = { tabWidth: 2 };
|
||||||
tabWidth: 2
|
|
||||||
};
|
|
||||||
|
|
||||||
if (opts.sourceMap) {
|
if (opts.sourceMap) {
|
||||||
printOpts.sourceMapName = opts.sourceMapName;
|
printOpts.sourceMapName = opts.sourceMapName;
|
||||||
|
|||||||
@ -85,7 +85,6 @@ exports.XJSElement = {
|
|||||||
exit: function (node) {
|
exit: function (node) {
|
||||||
var callExpr = node.openingElement;
|
var callExpr = node.openingElement;
|
||||||
var children = node.children;
|
var children = node.children;
|
||||||
var args = callExpr.arguments;
|
|
||||||
|
|
||||||
_.each(children, function (child) {
|
_.each(children, function (child) {
|
||||||
delete child.raw;
|
delete child.raw;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user