fix: Add pre-commit-config.yaml

This commit is contained in:
Leni Aniva 2024-09-29 00:14:24 -07:00
parent 2b030ab61f
commit 3719c667b5
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.*
!.gitignore
!.pre-commit-config.yaml
# Cache
node_modules

23
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, chore, test, build, merge]
- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c 'npx eslint'
language: system
types: [javascript]
pass_filenames: false