Skip to content

Commit

Permalink
Remove language_version property from pre-commit-hooks.yaml on recomm…
Browse files Browse the repository at this point in the history
…endation of pre-commit creator (refs #157).
  • Loading branch information
DavidAnson committed Mar 2, 2021
1 parent d6e4154 commit 014e777
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
description: "Checks the style of Markdown/Commonmark files."
entry: markdownlint
language: node
language_version: latest
types: [markdown]
minimum_pre_commit_version: 0.15.0
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ A JS configuration file may internally `require` one or more npm packages as a w

## Use with pre-commit

To run `markdownlint-cli` as part of a [pre-commit](https://pre-commit.com/) workflow, add something like the below to the `repos` list in the project's `.pre-commit-config.yaml`:
To run `markdownlint-cli` as part of a [pre-commit][pre-commit] workflow, add something like the below to the `repos` list in the project's `.pre-commit-config.yaml`:

```yaml
- repo: https://github.com/igorshubovych/markdownlint-cli
Expand All @@ -121,6 +121,8 @@ To run `markdownlint-cli` as part of a [pre-commit](https://pre-commit.com/) wor
- id: markdownlint
```

> Depending on the environment this workflow runs in, it may be necessary to [override the language version of Node.js used by pre-commit][pre-commit-version].
## Related

- [markdownlint][markdownlint] - API for this module
Expand All @@ -144,3 +146,5 @@ MIT © Igor Shubovych
[globprimer]: https://github.com/isaacs/node-glob/blob/master/README.md#glob-primer
[ignore]: https://github.com/kaelzhang/node-ignore
[gitignore]: https://git-scm.com/docs/gitignore
[pre-commit]: https://pre-commit.com/
[pre-commit-version]: https://pre-commit.com/#overriding-language-version

0 comments on commit 014e777

Please sign in to comment.