mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-12 23:29:32 +00:00
Add prettier
to docs/
(#4628)
This commit is contained in:
16
docs/.prettierrc.js
Normal file
16
docs/.prettierrc.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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.
|
||||
'^(#|@|~|\\$)(/.*)$',
|
||||
'',
|
||||
'^[./]',
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user