Eslint prefer-const (#17864)

* adds prefer-const to eslint config and runs fixer

* reverts unintended change
This commit is contained in:
Jordan Reimer
2022-11-09 16:15:31 -07:00
committed by GitHub
parent 96d623d3fc
commit 483ef19946
464 changed files with 1701 additions and 1714 deletions

View File

@@ -17,7 +17,7 @@ function writeKeysFile(unsealKeys, rootToken, filePath) {
if (filePath === undefined) {
filePath = path.join(process.cwd(), 'tests/helpers/vault-keys.js');
}
let keys = {};
const keys = {};
keys.unsealKeys = unsealKeys;
keys.rootToken = rootToken;
@@ -42,7 +42,7 @@ function run(command, args = [], shareStd = true) {
if (shareStd) {
return execa(command, args, { cleanup: true, stdin: 'inherit', stdout: 'inherit', stderr: 'inherit' });
}
let p = execa(command, args, { cleanup: true });
const p = execa(command, args, { cleanup: true });
p.stdout.pipe(process.stdout);
p.stderr.pipe(process.stderr);
return p;