chore: add commitizen packages

This commit is contained in:
cedoor
2022-05-24 19:31:32 +02:00
parent bbb4a1c791
commit 7dca2264cd
6 changed files with 1064 additions and 47 deletions

3
.commitlintrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}

View File

@@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

3
.lintstagedrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"**/*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"]
}

View File

@@ -1,3 +1,5 @@
{
"singleQuote": true
"semi": false,
"arrowParens": "always",
"trailingComma": "none"
}

View File

@@ -5,7 +5,9 @@
"scripts": {
"start": "nx serve",
"build": "nx build",
"test": "nx test"
"test": "nx test",
"commit": "cz",
"precommit": "lint-staged"
},
"private": true,
"dependencies": {
@@ -22,6 +24,8 @@
"tslib": "^2.3.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@nrwl/cli": "14.1.8",
@@ -43,7 +47,9 @@
"@typescript-eslint/eslint-plugin": "~5.18.0",
"@typescript-eslint/parser": "~5.18.0",
"babel-jest": "27.5.1",
"commitizen": "^4.2.4",
"cypress": "^9.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "~8.12.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-cypress": "^2.10.3",
@@ -52,11 +58,17 @@
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.5.0",
"jest": "27.5.1",
"lint-staged": "^12.4.2",
"nx": "14.1.8",
"prettier": "^2.5.1",
"react-test-renderer": "18.1.0",
"ts-jest": "27.1.4",
"ts-node": "9.1.1",
"typescript": "~4.6.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

1085
yarn.lock

File diff suppressed because it is too large Load Diff