Mirror of the sourcecode for my blog, original repo: https://github.com/NobbZ/blog-nobbz-dev
at main 1.4 kB view raw
1# SPDX-FileCopyrightText: 2025 Norbert Melzer 2# SPDX-FileContributor: Norbert Melzer 3# 4# SPDX-License-Identifier: MIT 5 6# See https://pre-commit.com for more information 7# See https://pre-commit.com/hooks.html for more hooks 8repos: 9 - repo: https://github.com/pre-commit/pre-commit-hooks 10 rev: v4.6.0 11 hooks: 12 - id: trailing-whitespace 13 exclude: "^Cargo.nix$" 14 - id: end-of-file-fixer 15 - id: check-yaml 16 - id: check-added-large-files 17 - id: check-merge-conflict 18 - id: forbid-submodules 19 20 # Add back later when there is time to properly configure it 21 - repo: https://github.com/fsfe/reuse-tool 22 rev: v5.0.2 23 hooks: 24 - id: reuse 25 26 - repo: local 27 hooks: 28 - id: alejandra 29 name: Alejandra nix formatting 30 language: system 31 files: ".*\\.nix$" 32 entry: alejandra --check 33 34 - id: prettier 35 name: Prettier JS/TS/bulk formatting 36 language: system 37 files: ".*\\.([jt]sx?|astro|mdx?|mjs|json|ya?ml)$" 38 entry: yarn prettier -w 39 40 - id: astro-check 41 name: Astro Check 42 language: system 43 files: "^src/.*" 44 entry: yarn astro check 45 pass_filenames: false 46 47 - id: eslint 48 name: ESlint 49 language: system 50 files: "^src/.*" 51 entry: yarn eslint 52 pass_filenames: false