Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 7, 2017
1 parent 51be537 commit f1c2af5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if(pathArg === 'demo') {
}

if (program.theme && program.theme.match(/^http.*css$/)) {
theme = program.theme
theme = program.theme;
} else {
theme = glob.sync('css/theme/*.css', {
cwd: revealPath
Expand Down
4 changes: 2 additions & 2 deletions bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var fillOpts = function(options) {
// if there is no preprocessor, create a passthu function
opts.preprocessor
= options.preprocessor ? require( serverBasePath + '/' + options.preprocessor )
: function(raw_text) { return raw_text };
: function(raw_text) { return raw_text; };

opts.scripts = {};
options.scripts.forEach(function(script) {
Expand Down Expand Up @@ -101,7 +101,7 @@ var startMarkdownServer = function(options) {
console.log('Make sure to have PhantomJS installed (and in your path).');
exec('phantomjs ' + printPluginPath + ' ' + initialFilePath + '?print-pdf' + ' ' + printFile, function(err, stdout, stderr) {
if(err) {
console.log(("[Error with path '" + printFile + "']\n" + stderr + "\n" + err.toString()).red);
console.log(('[Error with path \'' + printFile + '\']\n' + stderr + '\n' + err.toString()).red);
} else {
console.log(stdout);
}
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"bin": {
"reveal-md": "bin/cli.js"
},
"scripts": {
"lint": "eslint bin"
},
"dependencies": {
"reveal.js": "3.4.1",
"express": "4.14.1",
Expand All @@ -27,5 +30,8 @@
"commander": "2.9.0",
"highlight.js": "9.9.0",
"yaml-front-matter": "^3.4.0"
},
"devDependencies": {
"eslint": "^3.15.0"
}
}

0 comments on commit f1c2af5

Please sign in to comment.