Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/oxc_traverse/scripts/lib/parse.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ export default async function getTypesFromCode() {
const codeDirPath = pathJoin(fileURLToPath(import.meta.url), '../../../../oxc_ast/src/ast/');

const types = Object.create(null);
await Promise.all(FILENAMES.map(async (filename) => {
for (const filename of FILENAMES) {
// oxlint-disable-next-line no-await-in-loop
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The disable comment uses 'oxlint' but should likely be 'eslint' based on standard linting tool naming conventions.

Suggested change
// oxlint-disable-next-line no-await-in-loop
// eslint-disable-next-line no-await-in-loop

Copilot uses AI. Check for mistakes.
const code = await readFile(`${codeDirPath}${filename}`, 'utf8');
parseFile(code, filename, types);
}));
}
return types;
}

Expand Down
Loading