Skip to content

Commit cfaf497

Browse files
committed
Update README.md to show how to use the Docker container image with pre-commit.
1 parent 0ae96d5 commit cfaf497

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,11 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
503503
> Depending on the environment that workflow runs in, it may be necessary to
504504
> [override the version of Node.js used by pre-commit][pre-commit-version].
505505

506+
Setting the `id` above to `markdownlint-cli2-docker` uses the Docker container
507+
image instead. That image bundles Node.js and all dependencies and provides the
508+
most consistent experience because it is not affected by new releases of any
509+
dependencies.
510+
506511
## History
507512

508513
See [CHANGELOG.md][changelog].

0 commit comments

Comments
 (0)