Fix syntax for dynamic docs versioning (#4708)

This commit is contained in:
Robert Kaussow
2025-01-12 11:37:47 +01:00
committed by GitHub
parent e13fee1733
commit 3e295f7f71
4 changed files with 42 additions and 12 deletions

View File

@@ -1,9 +1,6 @@
import { readFile } from 'node:fs/promises';
const config = require('../.prettierrc.json');
// eslint-disable-next-line antfu/no-top-level-await
const config = JSON.parse(await readFile(new URL('../.prettierrc.json', import.meta.url)));
export default {
module.exports = {
...config,
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [