Revert "Add no-use-before-define linter rule"
This reverts commit fdcc5d68a2.
Unfortunately, this requires us to move exports to the bottom.
This in turn causes circular dep issues and also access of
exports.GLOBAL_VAR in the global context
This commit is contained in:
+16
-15
@@ -1,5 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
exports = module.exports = {
|
||||
getConfig,
|
||||
setConfig,
|
||||
|
||||
verifyPassword,
|
||||
maybeCreateUser,
|
||||
|
||||
supports2FA,
|
||||
|
||||
startSyncer,
|
||||
|
||||
removePrivateFields,
|
||||
|
||||
sync
|
||||
};
|
||||
|
||||
const assert = require('node:assert'),
|
||||
AuditSource = require('./auditsource.js'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
@@ -523,18 +539,3 @@ async function sync(progressCallback) {
|
||||
debug('sync: done');
|
||||
}
|
||||
|
||||
exports = module.exports = {
|
||||
getConfig,
|
||||
setConfig,
|
||||
|
||||
verifyPassword,
|
||||
maybeCreateUser,
|
||||
|
||||
supports2FA,
|
||||
|
||||
startSyncer,
|
||||
|
||||
removePrivateFields,
|
||||
|
||||
sync
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user