mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 18:01:02 +00:00
73c0fe2cf8
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: qwerty287 <qwerty287@posteo.de>
16 lines
524 B
JavaScript
16 lines
524 B
JavaScript
import { readFile } from 'node:fs/promises';
|
|
|
|
// eslint-disable-next-line antfu/no-top-level-await
|
|
const config = JSON.parse(await readFile(new URL('../.prettierrc.json', import.meta.url)));
|
|
|
|
export default {
|
|
...config,
|
|
plugins: ['@ianvs/prettier-plugin-sort-imports'],
|
|
importOrder: [
|
|
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
|
|
'', // Empty string will match any import not matched by other special words or groups.
|
|
'^(#|@|~|\\$)(/.*)$',
|
|
'',
|
|
'^[./]',
|
|
],
|
|
};
|