File tree Expand file tree Collapse file tree 3 files changed +229
-8
lines changed Expand file tree Collapse file tree 3 files changed +229
-8
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ . " $( dirname -- " $0 " ) /_/husky.sh"
3+
4+ yarn lint-staged
Original file line number Diff line number Diff line change 1010 "compile" : " yarn workspace mikro-orm-find-dataloader run build" ,
1111 "test" : " yarn workspace mikro-orm-find-dataloader run test" ,
1212 "version" : " yarn changeset version && yarn install --immutable" ,
13- "release" : " yarn run compile && yarn changeset publish"
13+ "release" : " yarn run compile && yarn changeset publish" ,
14+ "postinstall" : " husky install"
1415 },
1516 "version" : " 1.0.0" ,
1617 "description" : " Additional dataloaders for MikroORM" ,
3536 "eslint-plugin-n" : " ^16.3.1" ,
3637 "eslint-plugin-prettier" : " ^5.0.1" ,
3738 "eslint-plugin-promise" : " ^6.1.1" ,
39+ "husky" : " ^8.0.3" ,
3840 "jest" : " ^29.7.0" ,
41+ "lint-staged" : " ^15.1.0" ,
3942 "nodemon" : " ^3.0.1" ,
4043 "prettier" : " ^3.1.0" ,
4144 "rimraf" : " ^5.0.5" ,
4245 "ts-jest" : " ^29.1.1" ,
4346 "ts-node" : " ^10.9.1" ,
4447 "typescript" : " ^5.2.2"
48+ },
49+ "lint-staged" : {
50+ "*.ts" : [
51+ " eslint \" packages/**/*.ts\" \" examples/**/*.ts\" --fix"
52+ ]
4553 }
4654}
You can’t perform that action at this time.
0 commit comments