Commit graph

15 commits

Author SHA1 Message Date
David Anson
dfcb4529f3 Cache all top-level calls to filterByTypes (~7% runtime reduction). 2024-08-24 22:05:16 -07:00
David Anson
1513e3803b Remove outdated type annotations and lint suppressions. 2024-06-21 21:03:37 -07:00
David Anson
d5994ae4de Add Rule.parser property for custom rules to specify which Markdown parser output they use, honor it strictly, and add full type support. 2024-03-13 20:55:57 -07:00
David Anson
828ae3541a Use @type to provide typing for all instances of params.parsers.micromark.tokens. 2024-02-28 21:01:47 -08:00
David Anson
12c4f79604 Add parsers object to RuleParams type, annotate every rule definition with Rule type for better type validation. 2024-02-27 20:42:09 -08:00
David Anson
996d88a9b4 Refactor to remove micromark helper getSiblingTokens for simpler code and better performance. 2024-02-26 21:07:24 -08:00
David Anson
730ae9a96f Reimplement MD027/no-multiple-space-blockquote using micromark tokens. 2024-02-25 15:06:28 -08:00
David Anson
f5b5773b50 Reimplement MD028/no-blanks-blockquote using micromark tokens. 2024-02-18 16:46:13 -08:00
David Anson
4b27bac79b Update all references to "params.tokens" to "params.parsers.markdownit.tokens" for clarity. 2023-02-25 15:50:57 -08: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
09c5736385 Remove automatic fix from MD028/no-blanks-blockquote due to ambiguity (fixes #315). 2020-11-23 14:57:19 -08:00
David Anson
2cd27c58f2 Update MD009/MD010/MD012/MD028 to report fixInfo for violations. 2019-08-24 22:55:51 -07:00
David Anson
7e980401b8 Expose shared.js helper code for custom rule authors (fixes #134). 2019-04-13 11:18:57 -07:00
David Anson
213aef4564 Convert var to const/let (except in browser-only code). 2018-04-27 22:05:34 -07:00
David Anson
9ba143555d Move each rule implementation into its own file (fixes #83). 2018-01-21 21:44:25 -08:00