Skip to content

Commit

Permalink
chore: fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Apr 4, 2024
1 parent b0a67b8 commit abafcf3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/commands/toc/processGeneralFolder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { lstatSync, readFileSync, readdirSync, writeFileSync, existsSync } from 'fs';
import {
lstatSync,
readFileSync,
readdirSync,
writeFileSync,
existsSync,
} from 'fs';
import { join } from 'path';

import debugFct from 'debug';
Expand Down Expand Up @@ -64,9 +70,14 @@ export async function processGeneralFolder(basename, folder, toc) {
const targetPath = join(basename, folder, 'index.json');
debug(`Create: ${targetPath}`);

writeFileSync(targetPath, JSON.stringify({ spectra, molecules }, undefined, 2), 'utf8');
writeFileSync(
targetPath,
JSON.stringify({ spectra, molecules }, undefined, 2),
'utf8',
);

let title = folderConfig.menuLabel ||
let title =
folderConfig.menuLabel ||
folder
.replace(/^[^/]*\//, '')
.replace(/^[0-9]*$/, '')
Expand Down

0 comments on commit abafcf3

Please sign in to comment.