diff --git a/lint/fix.ts b/lint/fix.ts index 195e4553c6e897..5be70ff4936626 100644 --- a/lint/fix.ts +++ b/lint/fix.ts @@ -88,7 +88,7 @@ const load = async ( * @returns Promise */ const main = async (files: string[], options: LintOptions) => { - load(options, ...files); + await load(options, ...files); }; if (esMain(import.meta)) { diff --git a/lint/lint.ts b/lint/lint.ts index bb4194a0a0a3ae..33e423aab61406 100644 --- a/lint/lint.ts +++ b/lint/lint.ts @@ -78,7 +78,7 @@ const loadAndCheckFiles = async (...files: string[]): Promise => { const rawFileData = (await fs.readFile(file, 'utf-8')).trim(); const fileData = JSON.parse(rawFileData); - linters.runScope('file', { + await linters.runScope('file', { data: fileData, rawdata: rawFileData, path: filePath, @@ -133,7 +133,7 @@ const main = async ( console.log(chalk`{cyan Testing browser data...}`); for (const browser in data?.browsers) { - linters.runScope('browser', { + await linters.runScope('browser', { data: data.browsers[browser], rawdata: '', path: { @@ -147,7 +147,7 @@ const main = async ( console.log(chalk`{cyan Testing feature data...}`); const walker = walk(undefined, data); for (const feature of walker) { - linters.runScope('feature', { + await linters.runScope('feature', { data: feature.compat, rawdata: '', path: { @@ -158,7 +158,7 @@ const main = async ( } console.log(chalk`{cyan Testing all features together...}`); - linters.runScope('tree', { + await linters.runScope('tree', { data, rawdata: '', path: {