Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 30, 2025
1 parent 9286020 commit 400ed6b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/scripts/check_dependencies.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const argv = minimist(process.argv.slice(2), {
// But if file names are passed as anonymous params, check only those files
const filesToCheckPromise = argv['_'].length > 0 ?
argv['_']
.map((shortPath) => path.resolve(baseFolder, shortPath))
.map((shortPath) => path.resolve(baseFolder, shortPath))
: glob(docsFolder + '/**/*.{md,mdx}');

// By default, check all dependencies
Expand Down Expand Up @@ -105,12 +105,13 @@ const printDependencies = async () => {
files
.sort()
.map(async (filePath) => {
const fileContents = await fs.promises.readFile(filePath, 'utf8');
const frontMatter = matter(fileContents).data;
return {
filePath: path.relative(baseFolder, filePath),
frontMatter };
})
const fileContents = await fs.promises.readFile(filePath, 'utf8');
const frontMatter = matter(fileContents).data;
return {
filePath: path.relative(baseFolder, filePath),
frontMatter
};
})
);

// Filter to dependencies that we care about
Expand Down

0 comments on commit 400ed6b

Please sign in to comment.