Update @actions/core for set-env deprecation and add pre-commit config

This commit is contained in:
mtkennerly 2020-10-08 22:11:18 -04:00
parent 2ffd60cf4c
commit f33a36717a
7 changed files with 125 additions and 26 deletions

19
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,19 @@
exclude: public
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.6
hooks:
- id: forbid-tabs
- repo: local
hooks:
- id: build
name: build
language: system
entry: npm run build
pass_filenames: false
files: '(\.(tsx?|jsx?)$|^package.json$|^tsconfig.json$)'