Commit graph

200 commits

Author SHA1 Message Date
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
David Anson
00082ee8a5 Add "configParsers" option so custom parsers can be used to handle the content of markdownlint-configure-file inline comments (fixes #528). 2022-06-05 22:32:22 -07:00
David Anson
535aa1a2ee Reorder README.md options.* properties into alphabetical order. 2022-06-04 15:06:07 -07:00
David Anson
c5ca661b96 Add MD052/reference-links-images and MD053/link-image-reference-definitions for reporting issues with link and image references (fixes #144, fixes #390, fixes #425, fixes #456). 2022-06-01 20:26:01 -07:00
David Anson
db5d9f6dbb Update previous commit for MD051/link-fragments to rename, refactor, add support for HTML anchors, and validate against
markdown-link-check (fixes #253).
2022-04-16 14:08:56 -07:00
Divlo
33ee1cd85e Initial implementation of MD051/valid-link-fragments (refs #253, closes #495). 2022-04-16 14:08:56 -07:00
David Anson
4affefc68d Add proper-names rule to .markdownlint.json, update tests to use that file, fix resulting issues. 2022-03-10 06:11:38 +00:00
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
05b9e6e43c Update dependency: strip-json-comments to 4.0.0. 2021-12-27 21:59:56 +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
13e375b281 Disable ESLint rule func-style. 2021-12-11 21:48:00 -08:00
David Anson
e3c75289bc Split config tests into a dedicated test file. 2021-11-30 22:03:31 -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
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
573ebe7462 Move two instances of deprecatedRuleNames into constants.js. 2021-11-11 22:37:16 -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
Sébastien Règne
39724b991a
Add MD049/emphasis-style (fixes #150). 2021-10-23 21:54:58 -07:00
Sébastien Règne
ab9e5875a2
Add MD050/strong-style (fixes #150). 2021-10-20 21:42:48 -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
646a67b8bd Add more test coverage for additionalProperties in config schema. 2021-06-15 22:25:51 -07:00
David Anson
fb5f647368 Update dependencies: c8 to 7.7.2, eslint to 7.28.0, eslint-plugin-jsdoc to 35.1.3, eslint-plugin-unicorn to 33.0.1, globby to 11.0.3, js-yaml to 4.1.0, markdown-it-texmath to 0.9.0, markdownlint-rule-helpers to 0.14.0, ts-loader to 9.2.3, typescript to 4.3.2, webpack to 5.38.1, webpack-cli to 4.7.2. 2021-06-08 22:20:13 -07: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
ec907567e2 Update dependencies: c8 to 7.5.0, eslint to 7.19.0, globby to 11.0.2, js-yaml to 4.0.0, markdownlint-rule-helpers to 0.13.0, ts-loader to 8.0.15, typescript to 4.1.3, webpack to 5.21.1, webpack-cli to 4.5.0. 2021-02-06 19:23:55 -08:00
David Anson
d2d4b310b9 Remove override of line-length rule for Rules.md validation. 2021-01-31 16:02:49 -08:00
David Anson
df4aa9f4e8 Update MD037/no-space-in-emphasis to ignore content of math blocks when used with markdown-it-texmath (fixes #357). 2021-01-24 17:50:39 -08:00
David Anson
238781506a Generate example YAML configuration with all properties set to their default value. 2021-01-21 19:50:57 -08:00
David Anson
5b7e9b87be Generate example JSONC configuration with all properties set to their default value. 2021-01-19 20:41:04 -08:00
David Anson
49945d6601 Convert from tape test harness to ava, address minor declaration file issue. 2021-01-10 20:46:00 -08:00
David Anson
3827842930 Delete markdownlint-test-default-config.json, allow MD041 to default to true, add missing headings. 2020-11-15 17:03:20 -08:00
David Anson
32db81b740 Work around problems related to markdown-it-texmath plugin's token.map not accounting for math_block_end. 2020-11-12 23:08:46 -08:00
David Anson
dd2c1d08ee Minor tweaks to previous PR commit. 2020-11-06 19:23:08 -08:00
Alexander Kachkaev
4bff44e33f Use require.resolve as a fallback of path.resolve (#342) 2020-11-06 19:23:08 -08:00
David Anson
a971361cf2 Add getVersion function to exports for easy access by tooling (ex: CLI). 2020-10-17 14:17:35 -07:00
David Anson
bd50a15a96 Replace @iktakahiro/markdown-it-katex with markdown-it-texmath for consistency with VS Code extension. 2020-10-16 20:59:04 -07:00
David Anson
aa7fbce2dd Update code to fix or document false positives for CodeQL warnings. 2020-10-02 13:44:18 -07:00
David Anson
6061cce169 Allow unknown (custom) rule names in .markdownlint.json schema. 2020-09-15 21:48:00 -07:00
David Anson
e9d63a6284 Add Promise-based APIs for markdownlint and readConfig, update declaration file. 2020-09-13 12:58:09 -07:00
David Anson
1f6a2cdc96 Split primary test cases across multiple files, address bogus @ts-ignore issues. 2020-09-12 12:42:46 -07:00
David Anson
4286f68152 Introduce concurrency to asynchronous file linting for improved performance. 2020-09-12 12:01:20 -07:00
David Anson
2851a691ba Make toString function on LintResults object non-enumerable (hide it from for..in). 2020-09-07 20:05:36 -07:00
David Anson
5ab938a6ab Add lint rules from eslint-plugin-unicorn. 2020-09-06 20:34:10 -07:00