David Anson
392a184bc8
Update external repository tests to account for fixed violation.
2022-08-15 21:20:27 -07:00
David Anson
4c00ffa2f0
Fix new violations from eslint-plugin-unicorn update.
2022-08-15 21:20:27 -07:00
David Anson
2b2dc27f24
Address linting violation introduced due to not being able to run locally.
2022-08-14 18:59:53 -07:00
David Anson
4767ebc6f1
Update test for external repositories to exclude a deliberate violation.
2022-08-14 18:52:43 -07:00
David Anson
2488a5c0ce
Remove some ignores for external repository testing that are no longer needed.
2022-08-08 21:12:30 -07:00
David Anson
a6489acd6b
Update MD053/link-image-reference-definitions to add ignored_definitions parameter (default to ["//"]) ( fixes #545 ).
2022-08-02 20:36:47 -07:00
David Anson
2c3e8c938b
Update MD053/link-image-reference-definitions to handle multi-line references inside blockquotes ( fixes #544 ).
2022-08-01 18:48:01 -07:00
David Anson
1154ab483b
Update MD037/no-space-in-emphasis to ignore the content of HTML attributes ( fixes #540 ).
2022-07-30 20:35:27 -07:00
David Anson
48f47b5214
Update MD053/link-image-reference-definitions to recognize links within square brackets ( fixes #537 ).
2022-07-30 16:12:27 -07:00
Mark Lodato
6c8ef48f94
Update MD051/link-fragments to support id attributes on non-a elements ( fixes #538 ).
...
The `name` is only an anchor on `a` elements, but `id` is a universal
attribute on all elements.
Also fix match on id/name to be complete, not just a suffix.
2022-07-27 21:42:05 -07:00
David Anson
5b0588f378
Update helpers.expandTildePath to handle receiving an os object without homedir, address minor @ts-check confusion in same file.
2022-07-24 12:22:32 -07:00
David Anson
95466e29be
Remove some ignores for external repository testing that are no longer needed.
2022-07-21 04:27:14 +00:00
David Anson
59a4a56bfc
Add tests for MD051/link-fragments to validate quotes and accented characters (refs #536 ).
2022-07-21 04:17:11 +00:00
David Anson
1bd748f79e
Update MD051/link-fragments to ignore HTML comments embedded in heading text.
2022-07-19 06:29:52 +00:00
David Anson
91856f0423
Update dependency: ava to 4.3.0.
2022-06-21 05:03:13 +00:00
David Anson
986870061d
Replace all instances of test.cb(...) with test(new Promise(...)) to prepare for upgrade to AVA@4 where it is not available.
2022-06-21 04:40:38 +00:00
David Anson
53cbf063e3
Update dependencies: c8 to 7.11.3, eslint to 8.18.0, eslint-plugin-jsdoc to 39.3.3, eslint-plugin-unicorn to 42.0.0, globby to 13.1.2, markdown-it-texmath to 1.0.0, markdownlint-rule-helpers to 0.16.0, ts-loader to 9.3.0, typescript to 4.7.4, webpack to 5.73.0, webpack-cli to 4.10.0.
2022-06-20 04:41:08 +00:00
David Anson
6e8a0737b5
Reimplement helpers.forEachInlineCodeSpan for ~11% time reduction measured via profile-fixture.mjs on GitHub Codespaces.
2022-06-19 02:14:03 +00:00
David Anson
54acae87ea
Update MD009/no-trailing-spaces to remove unnecessary sorting, add additional test cases.
2022-06-16 04:48:51 +00:00
David Anson
f284233f9a
Add test scenario for rule violations after a multi-line code span.
2022-06-13 23:11:53 -07:00
David Anson
28b273e798
Add more test cases for trailing spaces.
2022-06-13 22:53:48 -07:00
David Anson
936c876810
Remove helpers.deepFreeze and call Object.freeze only on things that need it for ~11% time reduction measured via profile-fixture.mjs on Apple Silicon M1.
2022-06-09 23:56:44 -07:00
David Anson
b6471fba31
Enable ESLint rule unicorn/no-array-for-each, auto-fix all violations, manually address new issues for ~4% time reduction measured via profile-fixture.mjs on Apple Silicon M1.
2022-06-08 22:10:27 -07:00
David Anson
604ff5df39
Add simple scaffolding for profiling and timing execution.
2022-06-07 22:51:12 -07:00
David Anson
85d720cefc
Update helpers.flattenLists to provide correct lastLineIndex for lists with an empty last item ( fixes #529 ).
2022-06-07 22:16:34 -07:00
David Anson
00082ee8a5
Add "configParsers" option so custom parsers can be used to handle the content of markdownlint-configure-file inline comments ( fixes #528 ).
2022-06-05 22:32:22 -07:00
David Anson
bbec8c5c1e
Hide the content of inline configuration HTML comments from the linting process to avoid false positives.
2022-06-04 22:59:19 -07:00
David Anson
535aa1a2ee
Reorder README.md options.* properties into alphabetical order.
2022-06-04 15:06:07 -07:00
David Anson
6718944b0f
Replace helpers.overlapsAnyRange with .withinAnyRange, update code/tests for resulting behavior.
2022-06-02 22:17:32 -07:00
David Anson
c5ca661b96
Add MD052/reference-links-images and MD053/link-image-reference-definitions for reporting issues with link and image references ( fixes #144 , fixes #390 , fixes #425 , fixes #456 ).
2022-06-01 20:26:01 -07:00
David Anson
b6ea481c23
Update lint-test-repos scenarios to restore an exclusion that is still needed.
2022-05-18 21:55:03 -07:00
David Anson
c7d74cf6c0
Update lint-test-repos scenarios for recent changes to test repositories.
2022-05-18 21:49:08 -07:00
David Anson
ffc4d56918
Support tilde paths ("~" prefix) in readConfig/Sync APIs (for "file" parameter and "extends" keys).
2022-05-17 21:38:36 -07:00
David Anson
5505deb1c9
Update lint-test-repos scenarios to ignore three newly-introduced external issues, run on Windows.
2022-05-17 21:29:49 -07:00
David Anson
3792613d2d
Implement markdownlint-disable-line inline comment (behaves like markdownlint-disable-next-line, but for the current line) ( fixes #524 ).
2022-05-15 15:59:11 -07:00
David Anson
5f5f44e8e0
Update MD031/blanks-around-fences to avoid duplicating list item markers when adding blank lines ( fixes #485 ).
2022-05-14 19:18:13 -07:00
David Anson
877ede7735
Remove outdated "detailed-results-" prefix from test scenario files.
2022-05-11 06:26:30 +00:00
David Anson
3be22e0620
Remove unnecessary promise from markdownlint-test-scenarios.js.
2022-05-11 06:07:43 +00:00
David Anson
820f2699ca
Reimplement markdownlint-test-scenarios.js to be simpler, more efficient, and use AVA test snapshots for all file-based test scenarios.
2022-05-10 06:11:46 +00:00
David Anson
7bb80d19b1
Update MD039/no-space-in-links to not remove code/emphasis markers when fixing issues ( fixes #482 ).
2022-05-06 21:42:31 -07:00
David Anson
a8f946e0b3
Refactor/simplify helpers.getPreferredLineEnding to use os.EOL instead of process.platform.
2022-05-06 21:04:34 -07:00
David Anson
19dfb960f1
Refactor to remove helpers.getPlatformIdentifier and simplify.
2022-05-05 23:14:18 -07:00
David Anson
295e481552
Fix null dereference in helpers.getPreferredLineEnding when running in browser (platform unknown, process object not available) and input string does not contain line endings.
2022-05-04 22:09:11 -07:00
David Anson
c4f51090ae
Update MD049/emphasis-style and MD050/strong-style to correctly report and fix multiple identical violations on the same line ( fixes #486 ).
2022-05-03 21:35:31 -07:00
David Anson
54369a00e6
Add test file for GitHub footnote syntax ( closes #370 ).
2022-04-30 19:50:43 -07:00
David Anson
7a5886b976
Update MD035/hr-style to preserve embedded spaces in thematic break markup ( fixes #498 ).
2022-04-28 21:53:51 -07:00
David Anson
b447c809bd
Update MD010/no-hard-tabs to add ignore_code_languages parameter ( fixes #383 ).
2022-04-28 21:09:06 -07:00
David Anson
0f845e9ba1
Update MD044/proper-names to add html_elements parameter ( fixes #435 ).
2022-04-25 21:50:33 -07:00
David Anson
8afec14376
Update MD044/proper-names to support specifying multiple casings of the same name (ex: "Abc" and "ABC") (refs #435 ).
2022-04-22 20:41:42 -07:00
David Anson
9310713da1
Make resultVersion 3 (report multiple errors per line, include fixInfo) the default.
2022-04-21 21:30:56 -07:00