Last active
          April 19, 2022 20:31 
        
      - 
      
- 
        Save babldev/9ac9c032ccd80a025e8f8ef21beb6430 to your computer and use it in GitHub Desktop. 
    Pre-commit hook for typescript type checking
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | repos: | |
| - repo: local | |
| hooks: | |
| - id: typescript-check | |
| name: typescript-check | |
| entry: npx tsc | |
| language: system | |
| types_or: [ts, tsx] | |
| pass_filenames: false | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
I use this in conjunction with eslint https://github.com/pre-commit/mirrors-eslint