Commit 24546da8 authored by lipengcheng 's avatar lipengcheng

x

parent 2aabdbe2
const tasks = (arr) => arr.join(' && ')
module.exports = {
// hooks: {
// 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
// 'pre-commit': 'yarn test -u && git add *.md *.snap',
// 'pre-push': 'yarn lint && yarn test'
// }
hooks: {
'pre-commit': 'lint-staged',
// 'pre-commit': tasks(['lint-staged', 'yarn commit']),
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
'pre-push': "echo 'pushing....'",
},
}
// const tasks = (arr) => arr.join(' && ')
// module.exports = {
// // hooks: {
// // 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
// // 'pre-commit': 'yarn test -u && git add *.md *.snap',
// // 'pre-push': 'yarn lint && yarn test'
// // }
// hooks: {
// 'pre-commit': 'lint-staged',
// // 'pre-commit': tasks(['lint-staged', 'yarn commit']),
// 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
// 'pre-push': "echo 'pushing....'",
// },
// }
module.exports = {
'*': 'ls-lint',
// '**/*.{js,vue}': ['yarn format', 'git add .'],
'**/*.{js,vue}': ['prettier --write', 'eslint --fix'],
'**/*.{vue,css,scss}': ['stylelint --fix'],
}
// module.exports = {
// '*': 'ls-lint',
// // '**/*.{js,vue}': ['yarn format', 'git add .'],
// '**/*.{js,vue}': ['prettier --write', 'eslint --fix'],
// '**/*.{vue,css,scss}': ['stylelint --fix'],
// }
[toc]
[toc] s
# <%= pkgName %>
## 项目介绍
......
{
"name": "<%= pkgName %>",
"version": "1.0.0",
"author": "<%= author %>",
"description": "<%= description %>",
"private": true,
"files": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment