diff --git a/packages/create-bison-app/template/codegen.yml b/packages/create-bison-app/template/codegen.yml index 172ba9c3..66ff5aab 100644 --- a/packages/create-bison-app/template/codegen.yml +++ b/packages/create-bison-app/template/codegen.yml @@ -1,9 +1,6 @@ schema: - api.graphql overwrite: true -hooks: - afterOneFileWrite: - - yarn lint generates: types.ts: documents: @@ -14,6 +11,8 @@ generates: - 'context/**/*.{ts,tsx}' - '!pages/api*' plugins: + - add: + content: '/* eslint-disable */' - typescript - typescript-operations - typescript-react-apollo diff --git a/packages/create-bison-app/template/package.json.ejs b/packages/create-bison-app/template/package.json.ejs index 55805ffb..5a8b37e9 100644 --- a/packages/create-bison-app/template/package.json.ejs +++ b/packages/create-bison-app/template/package.json.ejs @@ -76,6 +76,7 @@ }, "devDependencies": { "@apollo/react-testing": "^4.0.0", + "@graphql-codegen/add": "^3.1.1", "@graphql-codegen/cli": "^2.6.2", "@graphql-codegen/typescript": "^2.4.8", "@graphql-codegen/typescript-operations": "^2.3.5",