Skip to content

Commit

Permalink
Update to version 0.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Aug 13, 2022
1 parent 48c10d6 commit c303058
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ A container image [`davidanson/markdownlint-cli2`][docker-hub-markdownlint-cli2]
can also be used (e.g., as part of a CI pipeline):

```bash
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:0.5.0 "**/*.md" "#node_modules"
docker run -v $PWD:/workdir davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
```

Notes:
Expand All @@ -148,14 +148,14 @@ Notes:
- A custom working directory can be specified with Docker's `-w` flag:

```bash
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:0.5.0 "**/*.md" "#node_modules"
docker run -w /myfolder -v $PWD:/myfolder davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
```

To invoke the `markdownlint-cli2-config` or `markdownlint-cli2-fix` commands
instead, use Docker's `--entrypoint` flag:
```bash
docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:0.5.0 "**/*.md" "#node_modules"
docker run -v $PWD:/workdir --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2:0.5.1 "**/*.md" "#node_modules"
```
### Exit Codes
Expand Down Expand Up @@ -344,7 +344,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:

```yaml
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.5.0
rev: v0.5.1
hooks:
- id: markdownlint-cli2
```
Expand Down Expand Up @@ -378,6 +378,7 @@ reference to the `repos` list in that project's `.pre-commit-config.yaml` like:
- 0.3.2 - Extensibility/Windows/consistency improvements
- 0.4.0 - New rules, async custom rules, explicit config, CJS (breaking)
- 0.5.0 - New rules, support modules (MJS) everywhere, include dotfiles
- 0.5.1 - Update dependencies

<!-- markdownlint-disable line-length -->

Expand Down
2 changes: 1 addition & 1 deletion markdownlint-cli2.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const resolveAndRequire = require("./resolve-and-require");

// Variables
const packageName = "markdownlint-cli2";
const packageVersion = "0.5.0";
const packageVersion = "0.5.1";
const libraryName = "markdownlint";
const libraryVersion = markdownlintLibrary.getVersion();
const dotOnlySubstitute = "*.{md,markdown}";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdownlint-cli2",
"version": "0.5.0",
"version": "0.5.1",
"description": "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the `markdownlint` library",
"author": {
"name": "David Anson",
Expand Down

0 comments on commit c303058

Please sign in to comment.