aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeel Kamath <neelkamath@protonmail.com>2018-05-13 12:18:46 +0200
committerNeel Kamath <neelkamath@protonmail.com>2018-05-13 12:18:46 +0200
commit1bd79064020c09910d9b151d9b633c01ce4a972b (patch)
tree79a6516bf6537875a5541c5124c3fe10d7efc88c
parentMake PM2 optional (diff)
downloadhackchat-1bd79064020c09910d9b151d9b633c01ce4a972b.tar.gz
hackchat-1bd79064020c09910d9b151d9b633c01ce4a972b.zip
Use the 'use strict' directive when needed
Diffstat (limited to '')
-rw-r--r--README.md1
-rw-r--r--server/src/scripts/configure.js2
-rw-r--r--server/src/scripts/debug.js2
-rw-r--r--server/src/scripts/dev.js2
4 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6e72a08..4a68ce6 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,7 @@ This is a backwards compatible continuation of the [work by Andrew Belt](https:/
- Use [the template](templateCommand.js) to learn how to create new commands.
- Use two space indents.
- Name files in camelCase.
+- Scripts that do not default to strict mode (such as modules) must use the `'use strict'` directive.
# Credits
diff --git a/server/src/scripts/configure.js b/server/src/scripts/configure.js
index 88cd098..0ecd858 100644
--- a/server/src/scripts/configure.js
+++ b/server/src/scripts/configure.js
@@ -7,6 +7,8 @@
*
*/
+'use strict';
+
// import required classes
const path = require('path');
const ImportsManager = require('../managers/imports-manager');
diff --git a/server/src/scripts/debug.js b/server/src/scripts/debug.js
index 97597cd..3a97d9f 100644
--- a/server/src/scripts/debug.js
+++ b/server/src/scripts/debug.js
@@ -7,6 +7,8 @@
*
*/
+'use strict';
+
// import required classes
const path = require('path');
const ConfigManager = require('../managers/config');
diff --git a/server/src/scripts/dev.js b/server/src/scripts/dev.js
index f1608ed..5049b84 100644
--- a/server/src/scripts/dev.js
+++ b/server/src/scripts/dev.js
@@ -7,6 +7,8 @@
*
*/
+'use strict';
+
// import required classes