Skip to content

Commit 3df7fe1

Browse files
fix trunk
1 parent fe342f6 commit 3df7fe1

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/pull-request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v6
28+
- uses: actions/setup-node@v6
29+
with:
30+
node-version: 24
31+
cache: yarn
32+
cache-dependency-path: yarn.lock
33+
- name: Install node modules
34+
run: yarn install --frozen-lockfile
2835
- name: Trunk Check
2936
uses: trunk-io/trunk-action@v1
3037

.trunk/trunk.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@ lint:
4242
- checkov@3.2.507
4343
- dotenv-linter@3.3.0
4444
# ESLint 9+ defaults to flat config only; this repo uses .eslintrc.js (ESLint 8 style).
45-
- eslint@8.57.1
45+
# Trunk runs ESLint in an isolated env without the repo's node_modules; bundle the same
46+
# plugins/parser as package.json so @typescript-eslint/* resolves (CI + local).
47+
- eslint@8.57.1:
48+
packages:
49+
- '@typescript-eslint/eslint-plugin@5.62.0'
50+
- '@typescript-eslint/parser@5.62.0'
51+
- 'eslint-config-prettier@8.10.0'
52+
- 'eslint-plugin-prettier@4.2.1'
4653
- git-diff-check
4754
- ktlint@0.43.2
4855
# 0.48+ pulls string-width that requires Node 20+ for regex /v; Trunk's runner uses Node 18.

0 commit comments

Comments
 (0)