Skip to content

Commit

Permalink
chore: update codegen to not lint codebase but instead ignore generat…
Browse files Browse the repository at this point in the history
…ed file
  • Loading branch information
kgajera committed Mar 30, 2022
1 parent 60ef680 commit 5a7260a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/create-bison-app/template/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
schema:
- api.graphql
overwrite: true
hooks:
afterOneFileWrite:
- yarn lint
generates:
types.ts:
documents:
Expand All @@ -14,6 +11,8 @@ generates:
- 'context/**/*.{ts,tsx}'
- '!pages/api*'
plugins:
- add:
content: '/* eslint-disable */'
- typescript
- typescript-operations
- typescript-react-apollo
Expand Down
1 change: 1 addition & 0 deletions packages/create-bison-app/template/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5a7260a

Please sign in to comment.