mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
chore: Initialize husky
This commit is contained in:
parent
73885d551e
commit
0898720a28
3 changed files with 9 additions and 1 deletions
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
_
|
2
.husky/pre-commit
Normal file
2
.husky/pre-commit
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
npx lint-staged
|
|
@ -11,7 +11,8 @@
|
||||||
"lint:fix": "eslint --fix {src,test}/**/*.ts",
|
"lint:fix": "eslint --fix {src,test}/**/*.ts",
|
||||||
"package": "ncc build --source-map --license LICENSE",
|
"package": "ncc build --source-map --license LICENSE",
|
||||||
"test": "c8 --reporter=lcov ava",
|
"test": "c8 --reporter=lcov ava",
|
||||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
|
"all": "npm run build && npm run format && npm run lint && npm run package && npm test",
|
||||||
|
"prepare": "husky && husky install"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -76,5 +77,9 @@
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^4.7.3"
|
"typescript": "^4.7.3"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.js": "eslint --cache --fix",
|
||||||
|
"*.{ts,js,yml,md,json}": "prettier --write"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue