2023-03-20 19:08:01 +01:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-06-03 19:32:56 +00:00
|
|
|
rev: v4.6.0
|
2023-03-20 19:08:01 +01:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
2023-07-15 11:35:46 +02:00
|
|
|
exclude: 'src/icons/.*\.svg'
|
2023-03-20 19:08:01 +01:00
|
|
|
- id: fix-byte-order-marker
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: trailing-whitespace
|
|
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
- id: check-json
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-01-15 18:03:28 +00:00
|
|
|
rev: "v4.0.0-alpha.8"
|
2023-03-20 19:08:01 +01:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2024-01-20 15:30:07 +01:00
|
|
|
additional_dependencies:
|
|
|
|
- prettier@3
|
2023-03-20 19:08:01 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2024-07-30 12:02:39 +02:00
|
|
|
rev: "v9.8.0"
|
2023-03-20 19:08:01 +01:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
files: \.([jt]s|astro)$ # *.js, *.ts and *.astro
|
|
|
|
types: [file]
|
|
|
|
additional_dependencies:
|
2024-07-19 09:39:15 +02:00
|
|
|
# TODO: update ESLint to v9
|
2024-01-20 15:30:07 +01:00
|
|
|
- eslint@8
|
|
|
|
- eslint-config-prettier@9
|
|
|
|
- eslint-plugin-unicorn@49
|
2023-07-15 00:19:28 +02:00
|
|
|
- prettier@3
|
2024-02-04 11:20:21 +01:00
|
|
|
- repo: https://github.com/kytta/mirrors-svgo
|
2024-07-19 09:39:15 +02:00
|
|
|
rev: v4.0.0-rc.0
|
2023-07-15 11:36:09 +02:00
|
|
|
hooks:
|
|
|
|
- id: svgo
|
2024-02-04 11:20:21 +01:00
|
|
|
files: "^src/icons/"
|
2024-07-19 09:39:15 +02:00
|
|
|
additional_dependencies:
|
|
|
|
- svgo@3
|