Command "commitlint" not found
来源:2-2 配置 eslint、 prettier 和 commitlint 规范工程

weixin_慕数据3367577
2022-02-18
error Command “commitlint” not found. 同时此错误
求帮助
package的配置
{
"name": "jira",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.0",
"@types/node": "^16.11.25",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"typescript": "^4.5.5",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"prepare": "husky install"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest",
"prettier"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"husky": "^7.0.4",
"lint-staged": "^12.3.4",
"mrm": "^3.0.10",
"prettier": "2.5.1"
},
"lint-staged": {
"*.{js,css,md,tx,tsx}": "prettier --write"
}
}
写回答
1回答
-
Nolan
2022-03-17
对照commitlint官方文档看看吧:https://github.com/conventional-changelog/commitlint#getting-started,如果不行就跳过这一节的配置,不影响后面的课程
00
相似问题