Commit graph

759 commits

Author SHA1 Message Date
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
Darius D
5167f0e576
Remove Node 10.x logic from CI workflow. (#465) 2021-12-11 13:02:04 -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
e7662b11b5 Simplify lintContent by removing errors array and processing errors in onError so nothing needs to be done after invoking a rule. 2021-12-04 22:09:20 -08:00
David Anson
d3c56d3ab8 Refactor lintContent to do less processing of errors for each rule and instead handle all errors at the end. 2021-12-04 17:02:11 -08:00
David Anson
e531bd6359 Refactor lintInput to share code between sync/async, support an async path for strings, and process files first for better concurrency. 2021-12-03 22:43:58 -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
a508824b0f Refactor helpers.emphasisMarkersInContent slightly to avoid duplicate/unnecessary work. 2021-11-26 05:37:04 +00: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
610b17e1a1 Run sub-tasks of "serial-declaration-demo" script in parallel for ~20% script time reduction. 2021-11-13 21:17:43 -08:00
David Anson
20365f8cb8 Restructure "ci" script for slightly better performance. 2021-11-13 20:42:36 -08:00
David Anson
8e22c009fd Add transpileOnly=true to ts-loader/webpack to reduce build-demo script time by ~40%. 2021-11-13 12:40:51 -08:00
David Anson
eaa8d0f15e Split "ci" script into two consecutive parallel groups to separate "declaration" and "build-demo" scripts which conflict when generated .d.ts files from the former are used by the latter; approximately balance the two groups based on CPU time of tasks. 2021-11-12 20:43:35 -08:00
David Anson
573ebe7462 Move two instances of deprecatedRuleNames into constants.js. 2021-11-11 22:37:16 -08:00
David Anson
983e586c9c Remove cpy-cli and rimraf dependencies; replace with simple script helper. 2021-11-11 22:02:51 -08:00
David Anson
090bbaa30f Resolve README.md-specific MD013/line-length violations. 2021-11-10 22:11:43 -08:00
David Anson
80863476b9 Add Pi-hole documentation to Examples in README.md. 2021-11-10 22:02:51 -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
febfcd73c9 Trivial simplifications to webpack.config.js. 2021-11-09 22:11:35 -08:00
David Anson
0550ba91d3 Move .eslintignore content into .eslintrc.json, sort by setting name. 2021-10-30 17:55:50 -07:00
David Anson
d032dc6b33 Remove rimraf from build-demo script to try to avoid rare failures under GitHub Actions. 2021-10-30 17:45:33 -07:00
David Anson
c4a7c87d69 Update package.json / engines / node to 12+ due to deprecation of Node 10. 2021-10-30 17:32:51 -07:00
David Anson
2bde578a38
Tweak sample text examples in CONTRIBUTING.md. 2021-10-30 12:53:50 -07:00
David Anson
495458c589 Update CONTRIBUTING.md with new guidelines. 2021-10-29 22:13:33 -07:00
David Anson
d121518911 Add new test repo suppression for pre-release rule MD049. 2021-10-29 22:09:34 -07:00
David Anson
f111c10b18 Add docker-npm-install script for "npm install" within a container. 2021-10-29 21:49:18 -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
Janosh Riebesell
6294ad3ef0
readme add pre-commit sample links for both markdownlint CLIs (#440) 2021-10-08 08:35:37 -07:00
David Anson
a5bfaa8a7d Correct typo-ed references to RuleOnErrorInfo.details to detail. 2021-09-25 16:23:37 -07:00
David Anson
a852407c88 Merge branch 'next' 2021-08-22 22:44:52 -07:00
David Anson
e79e8188a5 Update to version 0.24.0. 2021-08-22 22:35:50 -07:00
David Anson
e72b2ba985 Update MD011/no-reversed-links to remove RegExp negative lookbehind assertion which is not supported on Safari. 2021-08-22 22:26:12 -07:00
David Anson
a8228ecd80 Update dependencies: c8 to 7.8.0, eslint to 7.32.0, eslint-plugin-jsdoc to 36.0.7, eslint-plugin-unicorn to 35.0.0, globby to 11.0.4, markdown-it-texmath to 0.9.1, ts-loader to 9.2.5, typescript to 4.3.5, webpack to 5.51.1, webpack-cli to 4.8.0. 2021-08-22 18:03:26 -07:00
David Anson
227750e0ee Update dependency: markdown-it to 12.2.0. 2021-08-22 17:41:04 -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
c0218b2489 Add MDN Web Docs to Examples in README.md. 2021-08-22 15:15:20 -07:00
David Anson
580e57ddee Add Prettier.md to document compatibility issues (fixes #410). 2021-08-13 22:18:39 -07:00