Package Exports
- @fisker/husky-config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fisker/husky-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@fisker/husky-config
fisker's Shareable husky Configuration
Install
yarn add husky @fisker/husky-config --devUsage
module.exports = require('@fisker/husky-config')Customize
// extend
module.exports = require('@fisker/husky-config').extend(
{
'pre-commit': 'yarn test',
},
'after'
)
// after
module.exports = require('@fisker/husky-config').after({
'pre-commit': 'yarn test',
})
// before
module.exports = require('@fisker/husky-config').before({
'pre-commit': 'yarn test',
})Overrides
// use overrides method
module.exports = require('@fisker/husky-config').overrides({
'pre-commit': 'yarn test'
})
// OR use spread
module.exports = {
hooks: {
...require('@fisker/husky-config').hooks,
'pre-commit': 'yarn test'
},
})** overrides method commands can be array **
License
MIT © fisker Cheung