It seems to be impossible to lint .mjs files, as the documentation lint CLI does not accept the same extension options (--require-extension mjs and --parse-extension mjs) as the documentation readme CLI:

Hardcoding the extension with documentation lint src/index.mjs doesn't output anything.