mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-06 04:21:03 +00:00
22 lines
526 B
TypeScript
22 lines
526 B
TypeScript
import { defineConfig } from "../index.js";
|
|
|
|
// Function-based extensions with before/after helpers
|
|
export const common = defineConfig({
|
|
info: {
|
|
name: 'Common',
|
|
},
|
|
extensions: {
|
|
'top-level': (before, after) => {
|
|
return {
|
|
'x-tagGroups': after('tags'),
|
|
};
|
|
},
|
|
'operation': (before, after) => {
|
|
return {
|
|
'x-badges': after('tags'),
|
|
'x-codeSamples': after('schemes'),
|
|
};
|
|
},
|
|
}
|
|
});
|