try {
this.node = new NodeJsExecutor();
this.node.setModule(getClass(), "eslint-" + this.version, "eslint.js");
} catch (final IOException e) {
this.node = null;
throw new SmallerException("Failed to setup node for eslint", e);
}
}
final String result = this.node.run(vfs, null, options);
final String content = VFSUtils.readToString(vfs.find(result)).trim();
if (content.length() > 0) {
//throw new JsHintException(content);
throw new SmallerException(content);
}
return resource;
}