Skip to content

Commit

Permalink
Merge branch 'add-missing-await' into data-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 12, 2024
2 parents a5b670f + f5d87b8 commit b962ca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lint/fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const load = async (
* @returns Promise<void>
*/
const main = async (files: string[], options: LintOptions) => {
load(options, ...files);
await load(options, ...files);
};

if (esMain(import.meta)) {
Expand Down
8 changes: 4 additions & 4 deletions lint/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const loadAndCheckFiles = async (...files: string[]): Promise<DataType> => {
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,
Expand Down Expand Up @@ -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: {
Expand All @@ -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: {
Expand All @@ -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: {
Expand Down

0 comments on commit b962ca0

Please sign in to comment.