feat: email check and commit config
Showing
commitlint.config.js
0 → 100644
jd/verifymail.js
0 → 100644
... | ... | @@ -44,6 +44,8 @@ |
"vue-router": "^4.0.0-0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@typescript-eslint/eslint-plugin": "^2.33.0", | ||
"@typescript-eslint/parser": "^2.33.0", | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
... | ... | @@ -57,6 +59,8 @@ |
"eslint": "^6.7.2", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-vue": "^7.0.0-0", | ||
"husky": "^4.3.0", | ||
"lint-staged": "^10.5.0", | ||
"prettier": "^1.19.1", | ||
"typescript": "~3.9.3" | ||
}, | ||
... | ... | @@ -81,6 +85,15 @@ |
"no-console": "off" | ||
} | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "node ./jd/verifymail.js && lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{ts,js,vue,scss}": "prettier --write" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jdf2e/nutui.git" | ||
... | ... | @@ -90,4 +103,4 @@ |
"last 2 versions", | ||
"not dead" | ||
] | ||
} | ||
\ No newline at end of file | ||
} |
想要评论请 注册 或 登录