Skip to content

Commit 4549f1b

Browse files
committed
add custom mdx2vast dependency to pre-commit config
1 parent 7c5d28f commit 4549f1b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/linting.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1919
- run: npm install --only=dev
20-
- name: Install custom mdx2vast for MDX directive vale support
21-
run: npm install -g https://github.com/edmundmiller/mdx2vast.git
2220
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
2321
vale:
2422
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,17 @@ repos:
99
1010
1111
files: \.(astro|svelte|mdx|md|yml|yaml)$
12+
- repo: local
13+
hooks:
14+
- id: install-mdx2vast
15+
name: Install mdx2vast
16+
entry: bash -c 'npm list -g mdx2vast || npm install -g https://github.com/edmundmiller/mdx2vast'
17+
language: system
18+
pass_filenames: false
19+
always_run: true
20+
stages: [pre-commit]
1221
- repo: https://github.com/errata-ai/vale
13-
rev: v3.7.1
22+
rev: v3.12.0
1423
hooks:
1524
- id: vale
1625
name: vale sync

0 commit comments

Comments
 (0)