chore(git): added husky's pre-commit hook
This commit is contained in:
		
							parent
							
								
									ef9703fc14
								
							
						
					
					
						commit
						88bf0091f5
					
				
							
								
								
									
										1
									
								
								.husky/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.husky/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| _ | ||||
							
								
								
									
										4
									
								
								.husky/pre-commit
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								.husky/pre-commit
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,4 @@ | ||||
| #!/bin/sh | ||||
| . "$(dirname "$0")/_/husky.sh" | ||||
| 
 | ||||
| npm run lint | ||||
							
								
								
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -11966,6 +11966,12 @@ | ||||
|       "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", | ||||
|       "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" | ||||
|     }, | ||||
|     "husky": { | ||||
|       "version": "6.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-6.0.0.tgz", | ||||
|       "integrity": "sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "iconv-lite": { | ||||
|       "version": "0.4.24", | ||||
|       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", | ||||
|  | ||||
| @ -31,7 +31,8 @@ | ||||
|     "lint:commit": "commitlint --from $(git rev-list --max-parents=0 HEAD)", | ||||
|     "lint:js": "eslint --ext .js,.vue --ignore-path=.gitignore --max-warnings=0 .", | ||||
|     "lint": "npm run lint:js && npm run lint:commit", | ||||
|     "test": "jest" | ||||
|     "test": "jest", | ||||
|     "prepare": "husky install" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@nuxtjs/axios": "^5.13.6", | ||||
| @ -77,6 +78,7 @@ | ||||
|     "eslint-plugin-nuxt": "^2.0.0", | ||||
|     "eslint-plugin-prettier": "^3.4.0", | ||||
|     "eslint-plugin-promise": "^5.1.0", | ||||
|     "husky": "^6.0.0", | ||||
|     "jest": "^26.5.0", | ||||
|     "less": "^4.0.0", | ||||
|     "less-loader": "^7.1.0", | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user