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:
@@ -1,5 +1,32 @@
|
||||
'use strict';
|
||||
|
||||
exports = module.exports = {
|
||||
setup,
|
||||
teardown,
|
||||
cleanup,
|
||||
|
||||
verifyConfig,
|
||||
removePrivateFields,
|
||||
injectPrivateFields,
|
||||
|
||||
getAvailableSize,
|
||||
getStatus,
|
||||
|
||||
upload,
|
||||
exists,
|
||||
download,
|
||||
copy,
|
||||
copyDir,
|
||||
|
||||
listDir,
|
||||
|
||||
remove,
|
||||
removeDir,
|
||||
|
||||
// Used to mock AWS
|
||||
_chunk: chunk
|
||||
};
|
||||
|
||||
const assert = require('node:assert'),
|
||||
async = require('async'),
|
||||
BoxError = require('../boxerror.js'),
|
||||
@@ -662,29 +689,3 @@ function injectPrivateFields(newConfig, currentConfig) {
|
||||
newConfig._provider = currentConfig._provider;
|
||||
}
|
||||
|
||||
exports = module.exports = {
|
||||
setup,
|
||||
teardown,
|
||||
cleanup,
|
||||
|
||||
verifyConfig,
|
||||
removePrivateFields,
|
||||
injectPrivateFields,
|
||||
|
||||
getAvailableSize,
|
||||
getStatus,
|
||||
|
||||
upload,
|
||||
exists,
|
||||
download,
|
||||
copy,
|
||||
copyDir,
|
||||
|
||||
listDir,
|
||||
|
||||
remove,
|
||||
removeDir,
|
||||
|
||||
// Used to mock AWS
|
||||
_chunk: chunk
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user