diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..2b6f469 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6 +} diff --git a/README.md b/README.md index caecee8..42b8a2e 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,7 @@ Local Installation ================== -[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/asciidoc-link-check) - -```bash -sudo snap install asciidoc-link-check -``` - -Or install with NodeJS, run: +Install with NodeJS, run: ``` bash npm install -g asciidoc-link-check diff --git a/asciidoc-link-check b/asciidoc-link-check index 91df195..9380184 100755 --- a/asciidoc-link-check +++ b/asciidoc-link-check @@ -52,7 +52,7 @@ var asciidoc = ''; // collect the asciidoc data, then process it stream.on('data', function (chunk) { asciidoc += chunk.toString(); }).on('end', function () { - console.log(chalk.cyan('\nFILE: ' + filenameOutput)) + console.log(chalk.cyan('\nFILE: ' + filenameOutput)); if (program.config) { fs.access(program.config, fs.constants.R_OK, function (err) { @@ -86,7 +86,7 @@ function runasciidocLinkCheck(asciidoc, opts) { asciidocLinkCheck(asciidoc, opts, function (err, results) { if (results.length === 0) { - console.log(chalk.yellow('No hyperlinks found!\n')) + console.log(chalk.yellow('No hyperlinks found!\n')); } results.forEach(function (result) { if (result.status === 'dead') { diff --git a/index.js b/index.js index 663fe5c..6091833 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,7 @@ -'use strict'; +(function () { + 'use strict'; + // this function is strict... + }()); var _ = require('lodash'); var async = require('async'); diff --git a/package.json b/package.json index 4aaf6ae..573cf5f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ }, "main": "index.js", "scripts": { - "pretest": "jshint index.js asciidoc-link-check" + "pretest": "jshint index.js asciidoc-link-check", + "test": "echo \"No tests specified\"" }, "repository": { "type": "git",