Skip to content

Commit

Permalink
chore: add pre-commit hook configuration (#57)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mondeja authored Sep 13, 2022
1 parent 3ce14a6 commit cb2182e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cb2182e

Please sign in to comment.