1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Use the 'use strict' directive when needed

This commit is contained in:
Neel Kamath 2018-05-13 15:48:46 +05:30
parent 89698d8afb
commit 1bd7906402
4 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -7,6 +7,8 @@
*
*/
'use strict';
// import required classes
const path = require('path');
const ImportsManager = require('../managers/imports-manager');

View File

@ -7,6 +7,8 @@
*
*/
'use strict';
// import required classes
const path = require('path');
const ConfigManager = require('../managers/config');

View File

@ -7,6 +7,8 @@
*
*/
'use strict';
// import required classes