diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-10 20:46:03 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-10 20:46:03 -0800 |
commit | 1db8dd8d674229c102cd5839f56e5e50068fb4be (patch) | |
tree | f896ed83d98971a1874efc845cb31e970c46bee0 /js/bin | |
parent | d9e21b680909b633831fd7e1d998e56ebfc37555 (diff) |
Fixed linter errors in js/bin/commonmark, js/test.js.
Diffstat (limited to 'js/bin')
-rwxr-xr-x | js/bin/commonmark | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bin/commonmark b/js/bin/commonmark index 1d395e0..3c222f8 100755 --- a/js/bin/commonmark +++ b/js/bin/commonmark @@ -1,17 +1,17 @@ #!/usr/bin/env node +"use strict"; + var fs = require('fs'); var util = require('util'); var commonmark = require('../lib/index.js'); -var parser = new commonmark.DocParser(); +var parser = new commonmark.DocParser(); var renderer; var inps = []; - -var output_ast = false; +var file; var files = []; if (process.argv[2] === '--ast') { - output_ast = true; files = process.argv.slice(3); renderer = { render: function(x) { return util.inspect(x, null, Infinity) + '\n'; |