markdownlint-cli2 will be auto-enabled if any of its config files are present: .markdownlint-cli2.jsonc, .markdownlint-cli2.yaml, .markdownlint-cli2.cjs.
Settings
markdownlint-cli2 supports the following config files:
.markdownlint-cli2.jsonc
.markdownlint-cli2.yaml
.markdownlint-cli2.cjs
.markdownlint-cli2.mjs
You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info.