Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "error",
"@typescript-eslint/triple-slash-reference": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "error",
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ node_modules/
.vscode

# Compiled files
dist/
dist/tests

# Test output
.nyc_output/
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ markdown-link-validator ./path/to/mds [options]

Basic configuration:
-i, --ignorePatterns path::[String] Regex to ignore links - default: []
-f, --flags path::String Flags applied to the ignore pattern
-h, --help Show help
--ignorePatternsFromFile String File containing regex to ignore links (see --ignorePatterns option), one per line
-f, --flags path::String Flags applied to the ignore patterns
-c, --ignoreStatusCodes [Number] HTTP status code of valid links - default: [200]
-e, --optionalMdExtension Boolean File extension (.md) is optional for relative links, that can be also folders with an index.md file inside#
-o, --allowOtherExtensions Boolean Relative links are valid also with extensions other than .md, including images
--noEmptyFiles Boolean Links to empty files are invalid (shown as errors instead of warnings in report)
-q, --quietMode Boolean Show only errors and warnings in report
-h, --help Show help

Miscellaneous:
--debug Output debugging information
--debug Output debugging information
```

The following will analyze all the `.md` files found under `./docs` and
Expand Down
6 changes: 6 additions & 0 deletions dist/src/bin/markdown-link-validator.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node
/**
* @fileoverview Main CLI that is run via the markdown-link-validator command.
* Based on ESLint.
*/
export {};
37 changes: 37 additions & 0 deletions dist/src/bin/markdown-link-validator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/bin/markdown-link-validator.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/src/lib/cli.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @fileoverview Main CLI object, it reads the options from cli.
*/
declare const _default: {
execute: (args: string[]) => Promise<0 | 1>;
};
export default _default;
199 changes: 199 additions & 0 deletions dist/src/lib/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/src/lib/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/src/lib/cli/options.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* @fileoverview Options configuration for optionator.
*/
export declare const options: any;
Loading