|
1 | | -# Pre-commit configuration for NextCommunity.github.io |
2 | | -# See https://pre-commit.com for more information |
| 1 | +default_stages: [pre-commit, pre-push] |
| 2 | +minimum_prek_version: "0.2.22" |
| 3 | +default_language_version: |
| 4 | + python: python3 |
| 5 | + node: 24.13.0 |
| 6 | +exclude: | |
| 7 | + (?x)^( |
| 8 | + \.git/| |
| 9 | + _site/| |
| 10 | + node_modules/| |
| 11 | + package-lock\.json$ |
| 12 | + ) |
3 | 13 |
|
4 | 14 | repos: |
5 | 15 | # Standard pre-commit hooks for basic file checks |
6 | 16 | - repo: https://github.com/pre-commit/pre-commit-hooks |
7 | | - rev: v4.5.0 |
| 17 | + rev: v6.0.0 |
8 | 18 | hooks: |
9 | 19 | - id: trailing-whitespace |
10 | | - exclude: ^package-lock\.json$ |
11 | 20 | - id: end-of-file-fixer |
12 | | - exclude: ^package-lock\.json$ |
13 | 21 | - id: check-yaml |
14 | | - args: ["--unsafe"] |
15 | 22 | - id: check-added-large-files |
16 | | - args: ["--maxkb=1000"] |
17 | 23 | - id: check-json |
18 | | - exclude: ^package-lock\.json$ |
19 | 24 | - id: check-merge-conflict |
20 | 25 | - id: check-case-conflict |
21 | 26 | - id: mixed-line-ending |
22 | | - args: ["--fix=lf"] |
23 | 27 |
|
24 | | - # Prettier for code formatting (JavaScript, CSS, HTML, Markdown, YAML, JSON) |
25 | 28 | - repo: https://github.com/pre-commit/mirrors-prettier |
26 | | - rev: v3.1.0 |
| 29 | + rev: v4.0.0-alpha.8 |
27 | 30 | hooks: |
28 | 31 | - id: prettier |
29 | | - types_or: [javascript, css, html, markdown, yaml, json] |
30 | | - exclude: ^(package-lock\.json|_site/) |
31 | | - additional_dependencies: |
32 | | - - prettier@3.1.0 |
| 32 | + types_or: [css, html, javascript, json, markdown, yaml] |
| 33 | + additional_dependencies: ["prettier@3.8.1"] |
33 | 34 |
|
34 | | - # Markdownlint for markdown files |
35 | 35 | - repo: https://github.com/igorshubovych/markdownlint-cli |
36 | | - rev: v0.39.0 |
| 36 | + rev: v0.47.0 |
37 | 37 | hooks: |
38 | 38 | - id: markdownlint |
39 | | - args: ["--fix"] |
40 | | - exclude: ^node_modules/ |
41 | | - |
42 | | -# Exclude patterns applied to all hooks |
43 | | -exclude: | |
44 | | - (?x)( |
45 | | - ^_site/| |
46 | | - ^node_modules/| |
47 | | - ^\.git/| |
48 | | - package-lock\.json |
49 | | - ) |
0 commit comments