summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2018-02-26 03:19:59 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2018-02-26 03:19:59 +0100
commit0a16147470246c8f49bb918f5ddc7bb2e54fba14 (patch)
tree5b19bc5f83e97c44faa5ae10e9dc7c0b462ffce0
parent373e9782dcf87a9c1169b5d1f8175ce14e4898c9 (diff)
downloadwekan-0a16147470246c8f49bb918f5ddc7bb2e54fba14.tar.gz
wekan-0a16147470246c8f49bb918f5ddc7bb2e54fba14.tar.bz2
wekan-0a16147470246c8f49bb918f5ddc7bb2e54fba14.zip
Fix lint errors related to sandstorm
-rw-r--r--.eslintrc.json3
-rw-r--r--sandstorm.js6
2 files changed, 5 insertions, 4 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index ba0437e0..8bd678b3 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -130,6 +130,7 @@
"HTTP": true,
"AccountSettings": true,
"Announcements": true,
- "Swimlanes": true
+ "Swimlanes": true,
+ "Npm": true
}
}
diff --git a/sandstorm.js b/sandstorm.js
index bb3e5011..3dcbf03c 100644
--- a/sandstorm.js
+++ b/sandstorm.js
@@ -22,9 +22,9 @@ const sandstormBoard = {
if (isSandstorm && Meteor.isServer) {
const fs = require('fs');
- const pathParts = process.cwd().split("/");
- var path = pathParts.join("/");
- const Capnp = Npm.require(path + "../../../node_modules/capnp.js");
+ const pathParts = process.cwd().split('/');
+ const path = pathParts.join('/');
+ const Capnp = Npm.require(`${path}../../../node_modules/capnp.js`);
const Package = Capnp.importSystem('sandstorm/package.capnp');
const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp');
const Identity = Capnp.importSystem('sandstorm/identity.capnp');