Skip to content

Commit

Permalink
fix #1(all): Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Feb 27, 2021
1 parent 2f708b9 commit 1147c40
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"laxcomma":true, "laxbreak":true, "evil":true}
{"laxcomma":true, "laxbreak":true, "evil":true, "esversion": 6}
6 changes: 3 additions & 3 deletions bin/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function getHeaders(stream){
.on('jline', function(record){
Object.keys(record).forEach(function(key){
headers[key] = null;
})
});
})
.on('end', function(){
yay(Object.keys(headers))
})
yay(Object.keys(headers));
});
});
}

Expand Down
2 changes: 1 addition & 1 deletion bin/foreach.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function keyvals(dict, callback){

function setpath(subject,path,value){
var c=path.length;
path.reduce(function(s,n){return s[n]=(--c?(s[n]||{}):value);},subject);
path.reduce(function(s,n){s[n]=(--c?(s[n]||{}):value); return s[n];},subject);
}
function getpath(subject,path){
return path.reduce(function(s,n){if(s!==undefined)return s[n];},subject);
Expand Down
6 changes: 3 additions & 3 deletions bin/join_left.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function join(infilePointer, joinKey, dictionary){
console.log(JSON.stringify(ans));
})
.on('error', (e) => nay(e))
.on('end', () => yay())
} catch (e) { nay(e) }});
.on('end', () => yay());
} catch (e) { nay(e); }});
}

function createReadStream(filename) {
Expand All @@ -45,7 +45,7 @@ function loadDict(joinKey, filename) {
.on('jline', (data) => ans[data[joinKey]] = data)
.on('error', (e) => nay(e))
.on('end', () => yay(ans));
} catch (e) { nay(e) }});
} catch (e) { nay(e); }});
}

function set(d,k,v) {
Expand Down
287 changes: 287 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,9 @@
"split": "^0.3.0",
"tree-math": "0.0.17",
"ya-csv": "^0.9.4"
},
"dev-dependencies": {},
"devDependencies": {
"jshint": "^2.12.0"
}
}

0 comments on commit 1147c40

Please sign in to comment.