chore: standardised the eslint config structure accross the project (#11814)

This commit is contained in:
Mridang Agarwalla
2026-03-12 11:02:52 +01:00
committed by GitHub
parent 621fd9bdec
commit 7cdee1703f
61 changed files with 1025 additions and 2011 deletions
@@ -0,0 +1,17 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';
register('./scripts/loader.mjs', pathToFileURL('./'));
register('fumadocs-mdx/node/loader', import.meta.url);
const { source } = await import('../lib/source');
const pages = source.getPages();
const endpointsPage = pages.find(p => p.url.endsWith('/apis/openidoauth/endpoints'));
if (endpointsPage) {
console.log('Endpoints Page URL:', endpointsPage.url);
console.log('TOC URLs:', endpointsPage.data.toc.map(i => i.url));
} else {
console.log('Endpoints page not found.');
}