website/Reference: add eslint ignore line 'cause of syntax and stuff

This commit is contained in:
Starbeamrainbowlabs 2024-10-02 01:05:22 +01:00
parent cc795f0f95
commit cd1e4a74ed
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -11,6 +11,7 @@ import parse_sections from "./lib/parse_sections.mjs";
// HACK: Make sure __dirname is defined when using es6 modules. I forget where I found this - a PR with a source URL would be great! // HACK: Make sure __dirname is defined when using es6 modules. I forget where I found this - a PR with a source URL would be great!
const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/")); const __dirname = import.meta.url.slice(7, import.meta.url.lastIndexOf("/"));
// eslint-disable-next-line prefer-const
let { sections, categories } = parse_sections(fs.readFileSync( let { sections, categories } = parse_sections(fs.readFileSync(
path.resolve( path.resolve(
__dirname, __dirname,