Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mohsentaleb/precommit-tsc

Open more actions menu

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

Sponsor this project

  •  

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.