Skip to content

FoysalRj/foysal-hasan-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

#markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z) https://github.com/DavidAnson/markdownlint-cli2

Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]

Glob expressions (from the globby library):

    • matches any number of characters, but not /
  • ? matches a single character, but not /
  • ** matches any number of characters, including /
  • {} allows for a comma-separated list of "or" expressions
  • ! or # at the beginning of a pattern negate the match
  • : at the beginning identifies a literal file path

Dot-only glob:

  • The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended
  • Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory
  • To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead

Optional parameters:

  • --config specifies the path to a configuration file to define the base configuration
  • --fix updates files to resolve fixable issues (can be overridden in configuration)
  • --help writes this message to the console and exits without doing anything else
  • --no-globs ignores the "globs" property if present in the top-level options object

Configuration via:

  • .markdownlint-cli2.jsonc
  • .markdownlint-cli2.yaml
  • .markdownlint-cli2.cjs or .markdownlint-cli2.mjs
  • .markdownlint.jsonc or .markdownlint.json
  • .markdownlint.yaml or .markdownlint.yml
  • .markdownlint.cjs or .markdownlint.mjs
  • package.json

Cross-platform compatibility:

  • UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended
  • Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended
  • Shells that expand globs do not support negated patterns (!node_modules); quoting is required here
  • Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases
  • The path separator is forward slash (/) on all platforms; backslash () is automatically converted

The most compatible syntax for cross-platform support: $ markdownlint-cli2 "**/*.md" "#node_modules" foysal-hasan-

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors