Commit graph

22 commits

Author SHA1 Message Date
David Anson
d22c1f19ef Refactor various code to do shallow/constrained search instead of deep search for better performance, make cache key for filterByTypesCached unique. 2024-10-09 22:42:36 -07:00
David Anson
33631a5984 Split micromark.cjs into separate -parse and -helpers files. 2024-09-28 16:26:38 -07:00
David Anson
164bbac651 Add @stylistic/eslint-plugin to ESLint configuration. 2024-09-01 16:16:05 -07:00
David Anson
dfcb4529f3 Cache all top-level calls to filterByTypes (~7% runtime reduction). 2024-08-24 22:05:16 -07:00
David Anson
a6cf08dfc6 Update MD039/no-space-in-links to report separate errors for start and end spaces (more granular; avoids conflicts). 2024-08-04 13:05:32 -07:00
David Anson
daa155d5a1 Reimplement MD039/no-space-in-links using micromark tokens. 2024-08-04 12:06:12 -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
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
6b01a98363 Add ESLint plugin eslint-plugin-regexp, enable recommended rules, apply all automated fixes (refs #657). 2022-12-19 21:36:24 -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
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
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
c87d7f5b8c Update dependencies: eslint-plugin-jsdoc to 31.6.0, eslint-plugin-unicorn to 27.0.0. 2021-02-06 19:55:22 -08:00
David Anson
67d1476ed8 Update MD039/no-space-in-links to handle RegExp match failure (fixes #262). 2020-03-07 19:49:57 -08:00
David Anson
1edb3f0a78 Update MD039/no-space-in-links to handle hardbreaks (fixes #222). 2019-09-28 22:50:33 -07:00
David Anson
33cb1a71ec Fix MD039/no-space-in-links to handle links within a multi-line paragraph. 2019-09-24 23:00:30 -07:00
David Anson
a75f1ecf2a Fix MD039/no-space-in-links range for multiple issues on the same line. 2019-09-21 21:05:58 -07:00
David Anson
c8a74bd72c Update MD037/MD038/MD039 to report fixInfo for violations. 2019-09-06 22:35:33 -07:00
David Anson
73511ff677 Remove trimLeft/trimRight helpers; use native implementations. 2019-04-17 14:54:27 -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