mirror of
				https://github.com/antd-tiny-vue/antd-tiny-vue.git
				synced 2025-11-01 01:01:44 +08:00 
			
		
		
		
	chore: add commitlint
This commit is contained in:
		
							
								
								
									
										21
									
								
								.commitlintrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.commitlintrc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | |||||||
|  | { | ||||||
|  |   "extends": [ | ||||||
|  |     "@commitlint/config-conventional" | ||||||
|  |   ], | ||||||
|  |   "rules": { | ||||||
|  |     "type-enum": [ | ||||||
|  |       2, | ||||||
|  |       "always", | ||||||
|  |       [ | ||||||
|  |         "feat", | ||||||
|  |         "fix", | ||||||
|  |         "refactor", | ||||||
|  |         "test", | ||||||
|  |         "build", | ||||||
|  |         "docs", | ||||||
|  |         "chore" | ||||||
|  |       ] | ||||||
|  |     ], | ||||||
|  |     "subject-max-length": [1,"always", 150] | ||||||
|  |   } | ||||||
|  | } | ||||||
							
								
								
									
										4
									
								
								.husky/commit-msg
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								.husky/commit-msg
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | #!/usr/bin/env sh | ||||||
|  | . "$(dirname -- "$0")/_/husky.sh" | ||||||
|  |  | ||||||
|  | pnpm exec commitlint -e "$1" | ||||||
| @@ -7,13 +7,18 @@ | |||||||
|   "author": "aibayanyu", |   "author": "aibayanyu", | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "test": "vitest" |     "test": "vitest", | ||||||
|  |     "prepare": "husky install" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|  |     "@commitlint/cli": "^17.4.3", | ||||||
|  |     "@commitlint/config-conventional": "^17.4.3", | ||||||
|     "@mistjs/eslint-config-vue-jsx": "^0.0.3", |     "@mistjs/eslint-config-vue-jsx": "^0.0.3", | ||||||
|  |     "@mistjs/tsconfig": "^1.0.0", | ||||||
|     "@mistjs/tsconfig-vue": "^0.0.3", |     "@mistjs/tsconfig-vue": "^0.0.3", | ||||||
|     "@types/node": "^18.13.0", |     "@types/node": "^18.13.0", | ||||||
|     "eslint": "^8.34.0", |     "eslint": "^8.34.0", | ||||||
|  |     "husky": "^8.0.3", | ||||||
|     "prettier": "^2.8.4", |     "prettier": "^2.8.4", | ||||||
|     "typescript": "^4.9.5", |     "typescript": "^4.9.5", | ||||||
|     "vite": "^4.1.1", |     "vite": "^4.1.1", | ||||||
|   | |||||||
							
								
								
									
										809
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										809
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user