mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 12:55:41 +00:00
Fix syntax for dynamic docs versioning (#4708)
This commit is contained in:
@@ -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: [
|
||||
|
Reference in New Issue
Block a user