chore: remove usage of the prefer-global rules (#11279)

This commit is contained in:
Denis-Adrian Cristea
2025-12-10 16:05:29 +02:00
committed by GitHub
parent 548d75258b
commit 9bf1f739e0
43 changed files with 64 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env node
/* eslint-disable n/shebang */
import { readFile } from 'node:fs/promises';
import process from 'node:process';
import { createCommand } from 'commander';
@@ -20,11 +20,8 @@ void generateSplitDocumentation(
opts.all
? {}
: {
fetchPackageVersions: async (_) => {
return ['main'];
},
fetchPackageVersionDocs: async (_, __) => {
return JSON.parse(await readFile(`${process.cwd()}/docs/docs.api.json`, 'utf8'));
},
fetchPackageVersions: async (_) => ['main'],
fetchPackageVersionDocs: async (_, __) =>
JSON.parse(await readFile(`${process.cwd()}/docs/docs.api.json`, 'utf8')),
},
).then(() => console.log('Generated split documentation.'));