Commit graph

428 commits

Author SHA1 Message Date
David Anson
23d8ed7c01 Add test case for custom rule that imports an ESM module (refs #477). 2022-01-11 23:08:53 -08:00
David Anson
e298e3daa4 Include async/await function in custom rules test for asynchronous mode. 2021-12-27 18:25:18 -08:00
David Anson
11e9a20531 Update dependency: globby to 12.0.2. 2021-12-27 22:53:04 +00:00
David Anson
05b9e6e43c Update dependency: strip-json-comments to 4.0.0. 2021-12-27 21:59:56 +00:00
David Anson
528758e962 Update dependencies: eslint to 8.5.0, eslint-plugin-jsdoc to 37.4.0. 2021-12-27 04:37:51 +00:00
David Anson
fd24b9552b Remove require("os") from helpers to reduce dependencies for browser scenarios. 2021-12-27 03:41:43 +00:00
David Anson
9ec14f13a1 Include custom rule markdownlint-rule-github-internal-links when validating project Markdown files. 2021-12-23 20:52:17 +00:00
David Anson
5f0040679d Deep freeze name/tokens/lines/frontMatterLines properties of params object before passing to (custom) rules for shared access. 2021-12-23 04:34:25 +00:00
Adithya Balaji
5253669495 Fix array indexing for markdownlint-disable-next-line when front matter is present. 2021-12-22 19:27:19 -08:00
David Anson
7a76f1d22d Update MD039/no-space-in-links to fix reference-style links, be slightly more permissive matching link content. 2021-12-22 14:52:43 -08:00
David Anson
7cf9c2d6be Update MD037/no-space-in-emphasis to ignore embedded underscore emphasis markers (fixes #444, fixes #408, fixes #354, fixes #324). 2021-12-21 22:21:28 +00:00
David Anson
3e8d3320f7 Add test for outdated ignore expressions to markdownlint-test-repos. 2021-12-21 05:31:26 +00:00
David Anson
6dea67825a Update definition of helpers.isBlankLine to treat unterminated start/end comments as potentially blank lines (fixes #431). 2021-12-20 04:18:45 +00:00
David Anson
d57b4770ed Update MD010/no-hard-tabs to allow tabs in code spans when the code_blocks parameter is set to false (for consistency) (fixes #454). 2021-12-17 17:24:00 -08:00
David Anson
0d9dfe7120 Split markdownlint-test-extra-* tests into separate files for (slightly) better concurrency. 2021-12-17 02:20:55 +00:00
David Anson
442dcfe5b8 Duplicate test markdownlint-test-extra.js to markdownlint-test-extra-type.js and markdownlint-test-extra-parse.js for splitting. 2021-12-17 02:15:13 +00:00
David Anson
8fde53cf31 Update MD035/hr-style to correctly match thematic breaks in block quotes. 2021-12-14 23:05:03 -08:00
David Anson
517eb42015 Update MD007/ul-indent to support start_indent parameter (fixes #337, closes #397). 2021-12-13 21:49:43 -08:00
David Anson
13e375b281 Disable ESLint rule func-style. 2021-12-11 21:48:00 -08:00
David Anson
2056d81682 Add support for asynchronous custom rules (ex: to read a file or make a network request). 2021-12-11 21:44:25 -08:00
David Anson
109e0d8cb6 Refactor custom rule exception tests for smaller size and better coverage. 2021-12-10 21:33:20 -08:00
David Anson
53e5e4272e Update custom rules tests to have matching coverage for sync and async scenarios, use test.cb/t.end for all async tests. 2021-11-30 22:35:19 -08:00
David Anson
e3c75289bc Split config tests into a dedicated test file. 2021-11-30 22:03:31 -08:00
David Anson
4d57de5c06 Duplicate markdownlint-test.js to markdownlint-test-config.js to split out config tests. 2021-11-30 21:58:54 -08:00
David Anson
7330ea4946 Add information about parser/index to error messages when parsing configuration file content. 2021-11-30 21:28:59 -08:00
David Anson
925f9cd168 Simplify exclusions for external repository tests, make exclusions more selective. 2021-11-29 22:21:23 -08:00
David Anson
291597edb9 Update rules MD049/emphasis-style and MD050/strong-style to include range and fixInfo when reporting issues (i.e., to be automatically fixable). 2021-11-28 23:26:02 -08:00
David Anson
11806dc5cb Tokens inside tables that lack a map should get it from the surrounding table row (which is more scoped than the table body) (fixes #463). 2021-11-26 04:26:15 +00:00
David Anson
1e82f76596 Reimplement inlineCodeSpanRanges as codeBlockAndSpanRanges to fix an issue with unterminated code spans (and for flexibility). 2021-11-23 04:51:20 +00:00
David Anson
9c60343692 Add new rules MD049/MD050 to detailed-results-* test files. 2021-11-19 21:53:33 -08:00
David Anson
573ebe7462 Move two instances of deprecatedRuleNames into constants.js. 2021-11-11 22:37:16 -08:00
David Anson
6c17718242 Add new test repo suppression for pre-release rule MD049. 2021-11-10 21:53:51 -08:00
David Anson
c5345f45eb Replace require("package.json") with constants.js to simplify and remove that file from markdownlint-browser.js. 2021-11-10 21:48:15 -08:00
David Anson
8179adf38e Add new test repo suppressions for pre-release rule MD049. 2021-11-09 22:17:21 -08:00
David Anson
d121518911 Add new test repo suppression for pre-release rule MD049. 2021-10-29 22:09:34 -07:00
David Anson
956b55b55e Simplify syntax for exclusion of globs/files in markdownlint-test-repos.js. 2021-10-23 22:24:47 -07:00
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -07:00
David Anson
aa8aa83db8 Update markdownlint-test-repos.js to ignore two files with newly-reported issues in dotnet-docs repo. 2021-10-23 12:59:39 -07:00
Álvaro Mondéjar Rubio
f7dfd59a5e Update MD033/no-inline-html to handle HTML elements in multi-line code spans (fixes #436). 2021-10-23 12:58:22 -07:00
Sébastien Règne
ab9e5875a2
Add MD050/strong-style (fixes #150). 2021-10-20 21:42:48 -07:00
David Anson
c99ced2a7d Update MD037/no-space-in-emphasis to ignore emphasis on code fences and not report violations for scenarios that span an empty code fence (fixes #381). 2021-08-22 15:28:28 -07:00
David Anson
580e57ddee Add Prettier.md to document compatibility issues (fixes #410). 2021-08-13 22:18:39 -07:00
David Anson
92111e09cf Resolve Windows-specific test failure due to path comparison. 2021-08-12 20:59:50 -07:00
David Anson
709e314836 Update readConfig to use fs.access so the async path is fully async. 2021-08-12 20:43:18 -07:00
David Anson
211f09afbc Allow custom file system implementation to be passed when linting or reading configuration. 2021-08-12 19:38:03 -07:00
David Anson
752e7141c8 Add test case for MD044/proper-names based on new issue (closes #409). 2021-06-30 21:21:23 -07:00
David Anson
706f48bd25 Re-implement MD011/no-reversed-links for better accuracy (range and fixInfo are now always valid) (fixes #398). 2021-06-17 21:50:03 -07:00
David Anson
646a67b8bd Add more test coverage for additionalProperties in config schema. 2021-06-15 22:25:51 -07:00
David Anson
d029c46a76 Remove test-repos exclusion that has been fixed in the repo. 2021-06-14 22:59:41 -07:00
David Anson
5f0f7653e0 Update all "detailed-results" tests to use resultVersion 3 (based on current output). 2021-06-14 22:47:24 -07:00