Commit graph

86 commits

Author SHA1 Message Date
David Anson
101edd8496 Add parsers parameter to readConfig/Sync to support non-JSON formats like YAML (fixes #118). 2018-05-23 22:24:40 -07:00
David Anson
2b4ecdced8 Update error message validation to handle CRLF and LF-only. 2018-05-20 21:43:55 -07:00
David Anson
11b19f141c Move all readConfig/Sync test files to test/config directory. 2018-05-20 21:37:05 -07:00
David Anson
922bbefd55 Add tests for updated newline regular expression. 2018-04-30 21:43:34 -07:00
David Anson
f77b7ae4ec Remove Q dependency, replace with native Promise/promisify. 2018-04-27 22:29:52 -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
c7c4c032d1 Code review feedback for "header"->"heading" change. 2018-04-18 22:28:14 -07:00
Milos Levacic
45424cf459 Change "header" to "heading" across the library
This should be backward compatible, as all "header" aliases are still
available, though documented as discouraged for future use.
2018-04-18 22:27:48 -07:00
David Anson
f80b61d8b7 Allow empty string for detail/context in onError callback from rules. 2018-03-17 22:11:56 -07:00
David Anson
08c8031736 Add documentation for authoring custom rules. 2018-03-03 22:15:49 -08:00
David Anson
7a752784f1 Add validation of onError callback object for rules. 2018-02-27 21:14:02 -08:00
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