From 3719c667b591a0f38a4cbdaca8a2a39e8ca95c2b Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Sun, 29 Sep 2024 00:14:24 -0700 Subject: [PATCH] fix: Add pre-commit-config.yaml --- .gitignore | 1 + .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 5899c04..644cc8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .* !.gitignore +!.pre-commit-config.yaml # Cache node_modules diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4e128de --- /dev/null +++ b/.pre-commit-config.yaml @@ -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