Commit graph

75 commits

Author SHA1 Message Date
David Anson
802c81f929 Add support for authoring custom rules. 2018-02-25 16:04:13 -08:00
David Anson
f24f98e146 Add support for using custom rules. 2018-02-15 21:35:58 -08:00
David Anson
4619a8c824 Refactor to run rule analysis when called, simplify functions. 2018-02-05 21:26:07 -08:00
David Anson
49e36f817c Remove abbreviations from rule metadata to clarify API. 2018-01-18 21:34:30 -08:00
David Anson
f79cdcb0d4 Rename rule params.options to .config for API consistency. 2018-01-17 20:52:54 -08:00
David Anson
a0e3b4db90 Remove regexp from rule definition to simplify API. 2018-01-16 21:27:38 -08:00
David Anson
54c28f47c3 Merge rule name/alias in rule definitions and results (for resultVersion 2). 2018-01-12 23:21:06 -08:00
David Anson
b565c1ff32 Add violation of new rule MD045 to break-all-the-rules.md. 2018-01-08 21:29:13 -08:00
Duncan Mackenzie
4fa837a031 Add MD045/no-alt-text (fixes #75). 2018-01-06 15:55:59 -08:00
David Anson
1184281c87 Replace trimLeft/trimRight polyfills with helper methods. 2017-12-13 21:41:28 -08:00
David Anson
af968fb246 Add Examples section to README with links to real-world use cases. 2017-11-21 21:58:42 -08:00
David Anson
0211abf1ba Update dependencies: browserify to 14.4.0, eslint to 4.2.0, nodeunit to 0.11.1, uglify-js to 3.0.25. 2017-07-17 22:23:00 -07:00
David Anson
0a678d25c1 Ignore the content of (valid) HTML comments when linting (fixes #64). 2017-07-16 23:08:47 -07:00
David Anson
8c34383f80 Change default value of options.resultVersion to 1 (breaking change). 2017-07-05 21:53:21 -07:00
David Anson
614ac8fa23 Add noInlineConfig option to disable inline config comments. 2017-05-21 22:58:10 -07:00
David Anson
7528295cae Add support for shareable/extendable configuration via "extends" and helper functions (fixes #33). 2017-05-19 22:36:46 -07:00
David Anson
b436640918 Add short links to each rule in Rules.md, update README.md to use them (fixes #54). 2017-05-07 12:48:04 -07:00
David Anson
d8975282dc Add MD044 proper-names "Proper names should have the correct capitalization" (fixes #39). 2016-12-22 13:40:31 -08:00
David Anson
ba3614868b Update dependency: eslint to 3.9.1. 2016-11-02 22:09:16 -07:00
David Anson
dcf0462c22 Add regular expressions from vscode-markdownlint for error range in results. 2016-10-31 22:53:46 -07:00
David Anson
5627bc27eb Add tests to verify detailed result format and basic content. 2016-10-26 21:31:53 -07:00
David Anson
0ca8bc7bb6 Add options.resultVersion for more detailed error reporting (fixes #23). 2016-10-23 21:30:31 -07:00
David Anson
557c5942ea Extract long-running "stress" tests from core test suite (no loss of coverage). 2016-10-06 21:44:39 -07:00
David Anson
3e2d1df072 Remove use of string.endsWith by test to failure on Node 0.10/0.12. 2016-10-05 22:43:14 -07:00
David Anson
93c1867f23 Generate and include JSON schema for options.config (fixes #25). 2016-10-05 22:21:54 -07:00
David Anson
affd94e061 Add maximum parameter to MD012/no-multiple-blanks (fixes #27). 2016-10-03 21:42:44 -07:00
David Anson
a2df7742c6 Add code_blocks parameter to MD010 to ignore hard tabs in code blocks (fixes #31). 2016-09-29 21:25:10 -07:00
David Anson
fdeeddc99d Update code/tests with latest functionality in Ruby markdownlint. 2016-09-24 16:15:54 -07:00
David Anson
f2060b4607 Add level parameter to MD002/MD025/MD041 (fixes #19). 2016-07-04 23:23:29 -07:00
David Anson
c8ecec1953 Add MD043 required-headers "Required header structure" (fixes #22). 2016-07-02 22:37:52 -07:00
David Anson
2612a96ae8 Add MD042 no-empty-links "No empty links" (fixes #24). 2016-06-27 22:19:02 -07:00
David Anson
0832793497 Add test that parses all Markdown files to find crashes. 2016-02-12 22:16:12 -08:00
David Anson
1e23d035ce Handle non-Array inputs for options.files. 2016-01-15 22:00:34 -08:00
David Anson
3e642bc03b Add "Related" section to README. 2016-01-15 21:41:11 -08:00
David Anson
9546cc520e Add rule aliases, support throughout (fixes #1). 2016-01-12 21:29:17 -08:00
David Anson
410da18a2c Add test to verify parameters in docs match code. 2015-12-13 21:42:51 -08:00
David Anson
7af794bb21 Update eslint dependency to 1.5.1, update code for new rules. 2015-09-26 22:22:22 -07:00
David Anson
31141cc3ed Add support for disabling/enabling rules within Markdown content (fixes #5). 2015-09-26 16:55:33 -07:00
David Anson
071bba88fc Handle mixed case for config keys. 2015-09-21 23:21:17 -07:00
David Anson
c98660c492 Fix bug in MD022 where it could report errors on line 0, add tests. 2015-09-07 14:04:28 -07:00
David Anson
a467f8b3e6 Automatically ignore common front matter; provide option for customization (fixes #2). 2015-07-25 22:18:30 -07:00
David Anson
a958a33860 Fix possible array-out-of-bounds access, add test. 2015-07-22 23:17:08 -07:00
David Anson
7f5dd9ab6b Add MD041 with tests. 2015-07-20 22:06:48 -07:00
David Anson
85531ff21e Add polyfills for String.trimLeft/Right for browsers without support. 2015-05-07 17:53:43 -07:00
David Anson
43f28b90c1 Add test to simulate typing each test file to validate handling of partial input. 2015-05-07 17:42:13 -07:00
David Anson
dab36c5afa Add '\r' to line ending test, install through2 for example script. 2015-05-02 17:41:41 -07:00
David Anson
548e3d35cb Add strings option to enable file-less scenarios. 2015-04-29 18:49:27 -07:00
David Anson
f1cd4e0fbb Update break-all-the-rules.md for new rules, fix bug in MD033. 2015-04-16 09:39:04 -07:00
David Anson
5d6d9d2b3b Add MD040 with tests. 2015-04-16 09:13:56 -07:00
David Anson
7e431f4499 Add MD038, MD039 with tests. 2015-04-15 18:24:42 -07:00