mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
				 2 changed files with 5 additions and 7 deletions
			
			
		@ -1,8 +1,6 @@ | 
				
			|||||
#!/bin/sh | 
					# Run linting and stop the commit process if any errors are found | 
				
			||||
. "$(dirname "$0")/_/husky.sh" | 
					# --quiet suppresses warnings (temporary until all warnings are fixed) | 
				
			||||
 | 
					 | 
				
			||||
# Run linting on affected files | 
					 | 
				
			||||
npm run affected:lint --base=main --head=HEAD --parallel=2 --quiet || exit 1 | 
					npm run affected:lint --base=main --head=HEAD --parallel=2 --quiet || exit 1 | 
				
			||||
 | 
					
 | 
				
			||||
# Check formatting only on staged files | 
					# Check formatting on modified and uncommitted files, stop the commit if issues are found | 
				
			||||
npx nx format:check --files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.ts\|\.tsx\|\.js\|\.jsx') || exit 1 | 
					npm run format:check --uncommitted || exit 1 | 
				
			||||
 | 
				
			|||||
					Loading…
					
					
				
		Reference in new issue