Commit graph

243 commits

Author SHA1 Message Date
David Anson
7d2248d211 Update MD055/table-pipe-style to support "consistent" and other styles, use micromark positioning, report ranges, add more tests. 2023-12-30 18:15:38 -08:00
Gabriel Kuznik
a563c082a5 Add rule MD055/table-missing-border (fixes #93, refs #1039, no generated files). 2023-12-29 17:29:06 -08:00
David Anson
9270513f14 Add instructions for "Validating Configuration" to explain how to use the JSON Schema with configuration objects/files. 2023-11-26 20:10:31 -08:00
David Anson
7df23eed2c Validate JSON configuration schema $id matches $schema.default. 2023-11-25 17:38:13 -08:00
David Anson
d2a0f74bbd Convert JSON schema validation to use Ajv. 2023-11-25 17:33:39 -08:00
David Anson
316b0989c3 Add $id to configuration schema, switch to version-specific repository links. 2023-11-24 15:23:36 -08:00
David Anson
b709a2f624 Update MD054/link-image-style to add url_inline parameter (fixes #753). 2023-11-12 22:46:30 -08:00
David Anson
063310e51a Update MD054/link-image-style to split reference parameter into full/collapsed/shortcut parameters (fixes #918). 2023-11-11 22:12:50 -08:00
David Anson
a9a77940c5 Remove rule aliases for "header" (deprecated in v0.9.0). 2023-11-09 20:05:30 -08:00
David Anson
20a552b4b7 Remove MD002 (deprecated in v0.13.0) and MD006 (deprecated in v0.19.0). 2023-11-09 19:47:24 -08:00
David Anson
3db8b258dc Remove deprecated ESLint rules after version update, sort rules by name. 2023-11-07 19:11:56 -08:00
David Anson
10f095c4fd Refactor new MD054/link-image-style rule, add tests, update documentation (fixes #40, fixes #399). 2023-11-02 19:48:55 -07:00
Tommy G
460836445c Add new MD054/link-image-style rule (in-progress PR, no generated files). 2023-11-02 19:48:55 -07:00
David Anson
da17cec722 Reimplement MD007/ul-indent using micromark tokens, reduce the length of fix edits (fixes #969). 2023-10-15 21:25:08 -07:00
David Anson
6720eadad4 Use stable URI identifiers for JSON schemas to avoid potential race conditions. 2023-09-28 20:48:50 -07:00
David Anson
dd6fe21ac7 Convert JSON schema validation to use @hyperjump/json-schema, validate against specific schema version, newly validate schema definition, add missing "$schema" property. 2023-09-27 22:48:01 -07:00
David Anson
c118c1160a Update MD052/reference-links-images to add a shortcut_syntax parameter for opting into shortcut scanning (fixes #915). 2023-09-04 16:40:48 -07:00
David Anson
24c97a54fb Refactor micromark token handling to remove optional Token.htmlFlowChildren property and make related code more efficient for a ~6% elapsed time reduction. 2023-09-02 19:32:25 -07:00
David Anson
523eeee3bb Update code for new behavior of ESLint rule n/prefer-promises/fs. 2023-08-22 22:00:43 -07:00
David Anson
d9de1dd22f Update MD022/blanks-around-headings to allow specifying a different number of blank lines for each heading level (fixes #504). 2023-08-08 22:56:59 -07:00
David Anson
809841098d Update MD022/blanks-around-headings to allow passing -1 for lines_above/lines_below to allow any number of blank lines in that direction (fixes #546). 2023-08-06 15:24:35 -07:00
David Anson
3dedc1cda1 Update tests to verify rules can be configured by identifier and by name (in response to previous commit that changed all test files to use name). 2023-07-27 21:42:14 -07:00
David Anson
73b9704159 Reimplement MD037/no-space-in-emphasis using micromark tokens, report start/end separately for smaller edit spans, remove markdown-it-texmath (fixes #533, fixes #597). 2023-07-24 21:36:55 -07:00
David Anson
1b0e783c33 Update README.md to clarify two things. 2023-05-26 20:28:21 -07:00
David Anson
300ee36a5f Re-introduce validateJsonUsingConfigSchemaStrict for validating the content of markdownlint-configure-file in Markdown files. 2023-03-16 20:41:32 -07:00
David Anson
0ebcf248ca Simplify test directory by moving all JSON configuration for scenario tests into the Markdown file via markdownlint-configure-file. 2023-03-15 21:26:22 -07: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
64159fa456 Address new @ts-check warnings in markdownlint-test.js. 2023-02-25 15:50:57 -08:00
David Anson
97f99befb8 Reimplement getReferenceLinkImageData using micromark tokens. 2023-02-25 15:50:57 -08:00
David Anson
57c612cfa4 Fix invalid link definition syntax in break-all-the-rules.md. 2023-02-25 15:50:57 -08:00
Bryan Mishkin
22db339eee
Move README.md History section to CHANGELOG.md using a format similar to what other projects use (fixes #694). 2023-01-05 19:24:04 -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
d7433af4d3 Update project file linting test to include README.md, address new issues, remove extra test. 2022-12-13 17:11:43 -08:00
David Anson
c9f7a323cc Add ReleaseProcess.md to explain the release process (fixes #562). 2022-12-13 16:42:54 -08:00
OnkarRuikar
068b090293 Mention 'markdownlint-rule-search-replace' rule in documentation 2022-12-09 20:12:05 -08:00
Bryan Mishkin
2c38ae90fc Add example for markdownlint-rule-helpers.applyFixes to documentation (fixes #663). 2022-12-04 15:17:56 -08:00
David Anson
91dd6dcb1d Enable "line-length": { "strict": true } for all user-facing Markdown files in the repository. 2022-11-12 17:53:47 -08:00
David Anson
52044c8181 Mostly standardize on putting rule names and tags in code spans in documentation. 2022-10-30 15:13:19 -07:00
David Anson
13b4340747 Update all links to rules to use md000.md instead of Rules.md#md000 (shorter, quicker, less distraction). 2022-10-30 14:58:45 -07:00
David Anson
37baddcf27 Generate Rules.md and md###.md files from metadata, improve Parameters documentation by referencing schema. 2022-10-29 23:21:45 -07:00
David Anson
0294b9bcc8 Add .mjs to linting, switch from eslint-plugin-node (no longer maintained) to eslint-plugin-n, update suppressions. 2022-10-26 03:26:59 +00:00
David Anson
592a42b0cb Update MD053/link-image-reference-definitions to handle references within references (i.e., Pandoc-style footnotes), verify Pandoc footnote indent is not treated as comment when markdown-it-footnote plugin is used (fixes #599). 2022-10-19 21:18:56 -07:00
Sam Chen
01ba757d3a
Update MD040/fenced-code-language to add allowed_languages parameter (fixes #610). 2022-10-17 12:29:29 -07:00
Josh Goldberg
82a5de0821 Add style/prettier.json (fixes #592). 2022-10-06 04:15:23 +00:00
David Anson
c383aab383 Enable, validate, and demonstrate the use of built-in style definitions (fixes #593). 2022-10-02 19:28:54 -07:00
David Anson
4c00ffa2f0 Fix new violations from eslint-plugin-unicorn update. 2022-08-15 21:20:27 -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
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
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