0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-21 13:51:28 +01:00

Add opinionated .markdownlint.json from markdownlint-cli2 project, reflow README.md.

This commit is contained in:
David Anson 2023-06-10 21:02:38 -07:00
parent 05f76f99e2
commit 1b8f59df69
2 changed files with 61 additions and 12 deletions

49
.markdownlint.json Normal file
View file

@ -0,0 +1,49 @@
{
"code-block-style": {
"style": "fenced"
},
"code-fence-style": {
"style": "backtick"
},
"emphasis-style": {
"style": "asterisk"
},
"fenced-code-language": {
"allowed_languages": [
"yaml"
],
"language_only": true
},
"heading-style": {
"style": "atx"
},
"hr-style": {
"style": "---"
},
"line-length": {
"strict": true,
"code_blocks": false
},
"no-duplicate-heading": {
"siblings_only": true
},
"ol-prefix": {
"style": "ordered"
},
"proper-names": {
"code_blocks": false,
"names": [
"CommonMark",
"JavaScript",
"Markdown",
"markdownlint",
"markdownlint-cli2"
]
},
"strong-style": {
"style": "asterisk"
},
"ul-style": {
"style": "dash"
}
}

View file

@ -1,11 +1,11 @@
# markdownlint-cli2-action # markdownlint-cli2-action
> A GitHub Action to run the [`markdownlint-cli2`][markdownlint-cli2] tool > A GitHub Action to run the [`markdownlint-cli2`][markdownlint-cli2] tool for
for linting [Markdown][markdown]/[CommonMark][commonmark] files with linting [Markdown][markdown]/[CommonMark][commonmark] files with
[`markdownlint`][markdownlint] [`markdownlint`][markdownlint]
`markdownlint-cli2` has extensive support for configuring options and `markdownlint-cli2` has extensive support for configuring options and disabling
disabling or customizing `markdownlint` rules. See the or customizing `markdownlint` rules. See the
[`markdownlint-cli2` README][markdownlint-cli2] for more information. [`markdownlint-cli2` README][markdownlint-cli2] for more information.
`markdownlint` includes a wide variety of rules for analyzing and improving `markdownlint` includes a wide variety of rules for analyzing and improving
Markdown content. See the [`markdownlint` README][markdownlint] for more Markdown content. See the [`markdownlint` README][markdownlint] for more
@ -19,11 +19,11 @@ Command to run (unset, `fix`, or `config`)
If unspecified or `""`, the `markdownlint-cli2` command is run. If unspecified or `""`, the `markdownlint-cli2` command is run.
If set to `fix`, the `markdownlint-cli2-fix` command is run and supported If set to `fix`, the `markdownlint-cli2-fix` command is run and supported issues
issues will be fixed automatically. will be fixed automatically.
If set to `config`, the `markdownlint-cli2-config` command is run and the If set to `config`, the `markdownlint-cli2-config` command is run and the first
first element of `globs` should specify a supported configuration file. element of `globs` should specify a supported configuration file.
For more detail: [documentation for `markdownlint-cli2`][command-line]. For more detail: [documentation for `markdownlint-cli2`][command-line].
@ -31,8 +31,8 @@ For more detail: [documentation for `markdownlint-cli2`][command-line].
Glob expression(s) of files to lint (newline-delimited by default) Glob expression(s) of files to lint (newline-delimited by default)
The default `*.{md,markdown}` lints all Markdown files in the base directory The default `*.{md,markdown}` lints all Markdown files in the base directory of
of a project. a project.
For more detail: [glob syntax in `markdownlint-cli2`][glob-syntax]. For more detail: [glob syntax in `markdownlint-cli2`][glob-syntax].
@ -114,8 +114,8 @@ See [`example.yml`][example-yml] for a simple GitHub workflow that uses
`markdownlint-cli2-action`. `markdownlint-cli2-action`.
See [`changed.yml`][changed-yml] for a GitHub workflow that lints only the See [`changed.yml`][changed-yml] for a GitHub workflow that lints only the
Markdown files that changed in the most recent commit (useful for Pull Markdown files that changed in the most recent commit (useful for Pull Requests
Requests and/or gradually introducing linting rules to a new repository). and/or gradually introducing linting rules to a new repository).
[changed-yml]: .github/workflows/changed.yml [changed-yml]: .github/workflows/changed.yml
[command-line]: https://github.com/DavidAnson/markdownlint-cli2#command-line [command-line]: https://github.com/DavidAnson/markdownlint-cli2#command-line