Skip to content

Commit

Permalink
chore: update lint:fix script to call the lint script and pass the fi…
Browse files Browse the repository at this point in the history
…x flag
  • Loading branch information
kgajera committed Apr 27, 2022
1 parent 60ef680 commit 8a0495e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
3 changes: 2 additions & 1 deletion packages/create-bison-app/template/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"g:test:request": "hygen test request --name",
"g:test:util": "hygen test util --name",
"lint": "yarn eslint . --ext .ts,.tsx --ignore-pattern tmp",
"lint:fix": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp",
"lint:fix": "yarn lint --fix",
"run:script": "yarn ts-node prisma/scripts/run.ts -f",
"setup:dev": "yarn db:deploy && yarn build:types && yarn db:seed",
"start": "next start -p $PORT",
Expand Down 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 8a0495e

Please sign in to comment.