From cb2182e62e1823d5b8c5d2ccd6d6daea34b0a345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Tue, 13 Sep 2022 20:33:37 +0200 Subject: [PATCH] chore: add pre-commit hook configuration (#57) * Create pre-commit hook configuration * Add `--ci` option to entry Due to a known bug, see also the comment on line 3. * Add `minimum_pre_commit_version` key Corresponding to the release in which support for node tooling was added. --- .pre-commit-hooks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..8fee76c --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,8 @@ +- id: svglint + name: svglint + entry: svglint -C # The `-C` flag is used due to https://github.com/birjj/svglint/issues/56 + description: Linter for SVGs + language: node + types: + - svg + minimum_pre_commit_version: 1.5.0