Skip to content

Commit

Permalink
Add missing documentation for "directory" property of options object …
Browse files Browse the repository at this point in the history
…passed to output formatters.
  • Loading branch information
DavidAnson committed Sep 13, 2023
1 parent 7dd9a60 commit db74715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ markdownlint-cli2-formatter-pretty
markdownlint-cli2-formatter-sarif
markdownlint-cli2-formatter-summarize
npm
POSIX
pre-commit
SARIF
subdirectories
Expand Down
2 changes: 2 additions & 0 deletions doc/OutputFormatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ module.exports = (options, params) => { ... }

Where `options` is an object that looks like:

- `directory`: `String` that identifies the base directory for relative paths
(using POSIX syntax)
- `results`: `Array` of [`markdownlint` `LintError` objects][markdownlint-d-ts],
each with an added `String` property `fileName` containing a relative path
- `logMessage`: `Function` that takes a single `String` argument and logs it to
Expand Down

0 comments on commit db74715

Please sign in to comment.