-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
trunk.yaml
62 lines (60 loc) · 1.68 KB
/
trunk.yaml
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
53
54
55
56
57
58
59
60
61
62
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.21.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
uri: https://github.com/trunk-io/plugins
ref: v1.4.3
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
tools:
enabled:
runtimes: [node]
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
definitions:
- name: eslint
commands:
- name: lint
run: ${workspace}/bin/eslint.js --output-file ${tmpfile} --format json ${target}
enabled:
- eslint
- git-diff-check
ignore:
- linters: [markdownlint]
paths:
- CHANGELOG.md
- linters: [prettier]
paths:
# Ignore all files
- "**"
# Except for json files in conf/
- "!conf/**/*.json"
actions:
disabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
enabled:
- trunk-upgrade-available