mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-18 19:05:57 +00:00
Biome 2.x does not support Markdown checking, causing errors on CLAUDE.md. Remove md from the hook's file filter. Also includes minor autofix changes from biome (trailing newlines).
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: requirements-txt-fixer
|
|
- id: detect-aws-credentials
|
|
- id: detect-private-key
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-symlinks
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
args: [--allow-multiple-documents]
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
args: [--fix=auto]
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: biome-check
|
|
name: Biome Check
|
|
entry: yarn biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
|
|
language: system
|
|
files: \.(js|ts|jsx|tsx|json)$
|
|
- id: markdown-table-formatter
|
|
name: Markdown Table Formatter
|
|
entry: yarn markdown-table-formatter
|
|
language: system
|
|
types: [markdown]
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.38.0
|
|
hooks:
|
|
- id: yamllint
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: prettier
|
|
name: Prettier (YAML)
|
|
entry: yarn prettier --write
|
|
language: system
|
|
types_or: [yaml]
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.11.0.1
|
|
hooks:
|
|
- id: shellcheck
|
|
|
|
- repo: https://github.com/scop/pre-commit-shfmt
|
|
rev: v3.12.0-2
|
|
hooks:
|
|
- id: shfmt
|
|
args: [-i, "2", -bn, -ci, -sr, -fn, -w]
|
|
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.7.11
|
|
hooks:
|
|
- id: actionlint
|
|
|
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
|
rev: v2.4.0
|
|
hooks:
|
|
- id: stylua # or stylua-system / stylua-github
|
|
exclude: hammerspoon\.types\.lua$
|
|
|
|
- repo: https://github.com/hugoh/pre-commit-fish.git
|
|
rev: v1.2
|
|
hooks:
|
|
- id: fish_syntax
|
|
- id: fish_indent
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.15.6
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [--fix]
|
|
- id: ruff-format
|