diff options
author | Neel Kamath <neelkamath@protonmail.com> | 2018-05-13 12:18:46 +0200 |
---|---|---|
committer | Neel Kamath <neelkamath@protonmail.com> | 2018-05-13 12:18:46 +0200 |
commit | 1bd79064020c09910d9b151d9b633c01ce4a972b (patch) | |
tree | 79a6516bf6537875a5541c5124c3fe10d7efc88c | |
parent | Make PM2 optional (diff) | |
download | hackchat-1bd79064020c09910d9b151d9b633c01ce4a972b.tar.gz hackchat-1bd79064020c09910d9b151d9b633c01ce4a972b.zip |
Use the 'use strict' directive when needed
Diffstat (limited to '')
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | server/src/scripts/configure.js | 2 | ||||
-rw-r--r-- | server/src/scripts/debug.js | 2 | ||||
-rw-r--r-- | server/src/scripts/dev.js | 2 |
4 files changed, 7 insertions, 0 deletions
@@ -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 |