未验证 提交 d9b0499f 编写于 作者: B Boris Sekachev 提交者: GitHub

Remove old hooks file before husky add (otherwise lint-staged runs several...

Remove old hooks file before husky add (otherwise lint-staged runs several times after several 'npm ci') (#3045)
上级 59d7b381
......@@ -46,7 +46,7 @@
"instrument": "nyc instrument cvat-ui cvat-ui_cov && nyc instrument cvat-canvas cvat-canvas_cov && nyc instrument cvat-data cvat-data_cov && nyc instrument cvat-core cvat-core_cov",
"cp": "cp -r cvat-ui_cov/* cvat-ui && cp -r cvat-canvas_cov/* cvat-canvas && cp -r cvat-data_cov/* cvat-data && cp -r cvat-core_cov/* cvat-core",
"rm": "rm -rf cvat-ui_cov cvat-canvas_cov cvat-data_cov cvat-core_cov",
"prepare": "husky install && npx husky add .husky/pre-commit \"npx lint-staged\"",
"prepare": "husky install && rm .husky/pre-commit && npx husky add .husky/pre-commit \"npx lint-staged\"",
"precommit:cvat-data": "cd cvat-ui && eslint --fix",
"precommit:cvat-core": "cd cvat-ui && eslint --fix",
"precommit:cvat-canvas": "cd cvat-ui && eslint --fix",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册