Files
letro-authentication-service/frontend/codegen.ts
2023-06-14 09:24:49 +02:00

35 lines
708 B
TypeScript

import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "./schema.graphql",
documents: ["src/**/*.{tsx,ts}", "!src/gql/**/*"],
ignoreNoDocuments: true, // for better experience with the watcher
generates: {
"./src/gql/": {
preset: "client",
plugins: [
{
add: {
content: "/* eslint-disable */",
},
},
],
},
"./src/gql/schema.ts": {
plugins: [
{
add: {
content: "/* eslint-disable */",
},
},
"urql-introspection",
],
},
},
hooks: {
afterOneFileWrite: ["prettier --write"],
},
};
export default config;