-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (46 loc) · 1.32 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
52 lines (46 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# SPDX-FileCopyrightText: 2025 Norbert Melzer
# SPDX-FileContributor: Norbert Melzer
#
# SPDX-License-Identifier: MIT
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: "^Cargo.nix$"
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: forbid-submodules
# Add back later when there is time to properly configure it
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse
- repo: local
hooks:
- id: alejandra
name: Alejandra nix formatting
language: system
files: ".*\\.nix$"
entry: alejandra --check
- id: prettier
name: Prettier JS/TS/bulk formatting
language: system
files: ".*\\.([jt]sx?|astro|mdx?|mjs|json|ya?ml)$"
entry: yarn prettier -w
- id: astro-check
name: Astro Check
language: system
files: "^src/.*"
entry: yarn astro check
pass_filenames: false
- id: eslint
name: ESlint
language: system
files: "^src/.*"
entry: yarn eslint
pass_filenames: false