Created
April 27, 2022 23:41
-
-
Save babldev/9e0e770fc541711b47b587d6aa45000f to your computer and use it in GitHub Desktop.
Typescript precommit settings
This file contains 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: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.1.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-yaml | |
- id: check-added-large-files | |
- repo: https://github.com/pre-commit/mirrors-eslint | |
rev: v8.12.0 | |
hooks: | |
- id: eslint | |
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx | |
types: [file] | |
args: ['--fix'] | |
- 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