shareon-pulsanti-condivisio.../.pre-commit-config.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-20 19:08:01 +01:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-11-20 09:22:44 +01:00
rev: v4.5.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
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
rev: "v9.0.0-alpha.1"
2023-03-20 19:08:01 +01:00
hooks:
- id: eslint
files: \.([jt]s|astro)$ # *.js, *.ts and *.astro
types: [file]
additional_dependencies:
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
2023-07-15 11:36:09 +02:00
- repo: local
hooks:
- id: svgo
name: optimize SVG files
entry: svgo
types: [svg]
files: 'src/icons/.*\.svg'
language: node
additional_dependencies:
2024-01-20 15:30:07 +01:00
- svgo