From 5c84c3d31f6978964c86c8110573c8105f4a905f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 28 Nov 2018 23:33:08 +0200 Subject: [PATCH] Re-add `'use strict' statements. They are still needed. --- cli.js | 2 ++ index.js | 2 ++ lib/index.js | 2 ++ lib/install.js | 2 ++ package.json | 3 --- test/index.js | 2 ++ 6 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cli.js b/cli.js index 26de9bf2..dda46cc7 100755 --- a/cli.js +++ b/cli.js @@ -1,5 +1,7 @@ #!/usr/bin/env node +'use strict'; + const spawn = require('child_process').spawn; const hugo = require('.'); const input = process.argv.slice(2); diff --git a/index.js b/index.js index 77e8c708..4591f10b 100644 --- a/index.js +++ b/index.js @@ -1 +1,3 @@ +'use strict'; + module.exports = require('./lib')(process.cwd()).path(); diff --git a/lib/index.js b/lib/index.js index 7a7de46e..8da74434 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,3 +1,5 @@ +'use strict'; + const path = require('path'); const BinWrapper = require('bin-wrapper'); const pkgConf = require('pkg-conf'); diff --git a/lib/install.js b/lib/install.js index 247d756a..b3cd0ff0 100644 --- a/lib/install.js +++ b/lib/install.js @@ -1,3 +1,5 @@ +'use strict'; + const path = require('path'); const signale = require('signale'); const bin = require('.'); diff --git a/package.json b/package.json index 2a341fd4..a617211d 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,6 @@ "env": { "es6": true, "node": true - }, - "parserOptions": { - "sourceType": "module" } } } diff --git a/test/index.js b/test/index.js index 1155d7c1..f097b577 100644 --- a/test/index.js +++ b/test/index.js @@ -1,5 +1,7 @@ /* eslint-env mocha */ +'use strict'; + const assert = require('assert'); const binCheck = require('bin-check'); const hugoBin = require('..');