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:
parent
89698d8afb
commit
1bd7906402
@ -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 [the template](templateCommand.js) to learn how to create new commands.
|
||||||
- Use two space indents.
|
- Use two space indents.
|
||||||
- Name files in camelCase.
|
- Name files in camelCase.
|
||||||
|
- Scripts that do not default to strict mode (such as modules) must use the `'use strict'` directive.
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// import required classes
|
// import required classes
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const ImportsManager = require('../managers/imports-manager');
|
const ImportsManager = require('../managers/imports-manager');
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// import required classes
|
// import required classes
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const ConfigManager = require('../managers/config');
|
const ConfigManager = require('../managers/config');
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// import required classes
|
// import required classes
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user