chore: switch eslint to lint changed files intead of whole project
This commit is contained in:
		@@ -3,11 +3,10 @@ repos:
 | 
				
			|||||||
  hooks:
 | 
					  hooks:
 | 
				
			||||||
    - id: eslint
 | 
					    - id: eslint
 | 
				
			||||||
      name: eslint
 | 
					      name: eslint
 | 
				
			||||||
      entry: go run cmd/mage/main.go frontend:lint
 | 
					      entry: scripts/lint.sh
 | 
				
			||||||
      language: system
 | 
					      language: system
 | 
				
			||||||
      files: \.[jt]sx?$  # *.js, *.jsx, *.ts and *.tsx
 | 
					      files: \.[jt]sx?$  # *.js, *.jsx, *.ts and *.tsx
 | 
				
			||||||
      types: [file]
 | 
					      types: [file]
 | 
				
			||||||
      pass_filenames: false
 | 
					 | 
				
			||||||
- hooks:
 | 
					- hooks:
 | 
				
			||||||
  - id: check-yaml
 | 
					  - id: check-yaml
 | 
				
			||||||
  - id: end-of-file-fixer
 | 
					  - id: end-of-file-fixer
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 | 
				
			|||||||
### Added
 | 
					### Added
 | 
				
			||||||
- Task sorting & filtering
 | 
					- Task sorting & filtering
 | 
				
			||||||
- Redesigned the Task Details UI
 | 
					- Redesigned the Task Details UI
 | 
				
			||||||
 | 
					- Implement task group actions (duplicate/delete all tasks/sort)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Fixed
 | 
					### Fixed
 | 
				
			||||||
- removed CORS middleware to fix security issue
 | 
					- removed CORS middleware to fix security issue
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								scripts/lint.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								scripts/lint.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					yarn --cwd frontend eslint $(echo $1 | sed 's/frontend\///g')
 | 
				
			||||||
		Reference in New Issue
	
	Block a user