Skip to content

mohsentaleb/precommit-tsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Check for Precommit

TSC for pre-commit.

For pre-commit see: https://github.com/pre-commit/pre-commit

For Typescript and TSC cli see: https://github.com/microsoft/TypeScript/

Using prettier with pre-commit

Add this to your .pre-commit-config.yaml:

  - repo: https://github.com/mohsentaleb/precommit-tsc
    rev: 'v1.0.0'
    hooks:
      - id: tsc

By default, files with extension .ts and .tsx are passed to tsc, if you want to add or remove to this list, use types / types_or / files directives or read more [here](Filtering files with types):

    -   id: tsc
        types_or: [ts, tsx, jsx]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published