Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metafeather/cd185324f4b646cdd87b47f243fd2e1e to your computer and use it in GitHub Desktop.
Save metafeather/cd185324f4b646cdd87b47f243fd2e1e to your computer and use it in GitHub Desktop.
Trunk.io - custom linter: markdown-link-check
# NOTE: run trunk print-config to see complete config options
version: 0.1
cli:
version: 0.9.0-beta
lint:
# ref: https://docs.trunk.io/check/custom-linters
linters:
# https://github.com/tcort/markdown-link-check
- name: markdown-link-check
hold_the_line: false
disable_upstream: true
version_command:
parse_regex: ${semver}
run: markdown-link-check --version
type: lsp_json
files:
- markdown
good_without_config: true
command:
- ${workspace}/.trunk/bin/markdown-link-check.js
- ${target}
package: markdown-link-check
runtime: node
success_codes:
- 0
- 1
direct_configs:
- .markdown-link-check.json
enabled:
- markdown-link-check@3.10.0
threshold:
- linters: [markdown-link-check]
level: LEVEL_HIGH
@sheldonhull
Copy link

@metafeather they have a public plug-in repo now for folks to contribute

@dapirian
Copy link

👋 Would love your contribution to https://github.com/trunk-io/plugins - we now support this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment