chore: cleanup unusued variables + enable linting (#38898)
This commit is contained in:
parent
e900f6ecc3
commit
ef6569b7d3
36 changed files with 31 additions and 89 deletions
|
@ -1,6 +1,5 @@
|
|||
/* eslint-disable camelcase */
|
||||
const { BlobServiceClient } = require('@azure/storage-blob');
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
const blobServiceClient = BlobServiceClient.fromConnectionString(process.env.ELECTRON_ARTIFACTS_BLOB_STORAGE);
|
||||
|
|
|
@ -8,6 +8,7 @@ const ELECTRON_DIR = path.resolve(__dirname, '..', '..');
|
|||
const SRC_DIR = path.resolve(ELECTRON_DIR, '..');
|
||||
|
||||
require('colors');
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const pass = '✓'.green;
|
||||
const fail = '✗'.red;
|
||||
|
||||
|
@ -129,7 +130,7 @@ function chunkFilenames (filenames, offset = 0) {
|
|||
* @returns {Promise<string[]>}
|
||||
*/
|
||||
async function findMatchingFiles (top, test) {
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise(resolve => {
|
||||
const matches = [];
|
||||
klaw(top, {
|
||||
filter: f => path.basename(f) !== '.bin'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue