mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
refactor: var to const and let (#9885)
* refactor: var to const and let * fix: missed global bootbox usage * refactor: align with eslint expectations
This commit is contained in:
@@ -7,7 +7,7 @@ const SocketPlugins = {};
|
||||
|
||||
How? From your plugin:
|
||||
|
||||
var SocketPlugins = require.main.require('./src/socket.io/plugins');
|
||||
const SocketPlugins = require.main.require('./src/socket.io/plugins');
|
||||
SocketPlugins.myPlugin = {};
|
||||
SocketPlugins.myPlugin.myMethod = function(socket, data, callback) { ... };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user