Bump eslint-plugin-n from 18.3.0 to 18.4.0
Bumps eslint-plugin-n from 18.3.0 to 18.4.0.
updated-dependencies:
- dependency-name: eslint-plugin-n dependency-version: 18.4.0 dependency-type: direct:development update-type: version-update:semver-minor …
Signed-off-by: dependabot[bot] support@github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
markdownlint-cli2-action
markdownlint-cli2has extensive support for configuring options and disabling or customizingmarkdownlintrules. See themarkdownlint-cli2README for more information.markdownlintincludes a wide variety of rules for analyzing and improving Markdown content. See themarkdownlintREADME for more information.Inputs
config (optional)
Path of a file to use for the base configuration object (defaults to none)
Equivalent to using the
--configcommand-line option and passing the specified configuration file.configPointer (optional)
JSON Pointer to a configuration object within the
--configfile (defaults to none)Equivalent to using the
--configPointercommand-line option and passing the specified JSON Pointer.fix (optional)
Whether to fix supported issues automatically (
true/false, defaults tofalse)Equivalent to specifying the
--fixcommand-line option.globs (optional)
Glob expression(s) of files to lint (newline-delimited, defaults to
*.{md,markdown})The default lints all Markdown files in the base directory of a project.
For more detail: glob syntax in
markdownlint-cli2.separator (optional)
String to use as a separator for the
globsinput (defaults to newline)Allows the
globsinput to use something other than\nto separate glob expressions.Outputs
[None]
Examples
To lint Markdown files in the base directory of a project:
To lint all Markdown files in a project:
To lint specific Markdown files in a project:
To use a custom separator:
To fix supported issues when linting:
To specify a custom configuration file:
To specify an embedded object in
package.json:To specify an embedded object in
pyproject.toml:To prevent linting issues from failing the workflow run:
See
example.ymlfor a simple GitHub workflow that usesmarkdownlint-cli2-action.See
changed.ymlfor a GitHub workflow that lints only the Markdown files that changed in the most recent commit (useful for Pull Requests and/or gradually introducing linting rules to a new repository).