Commit graph

566 commits

Author SHA1 Message Date
David Anson
11b19f141c Move all readConfig/Sync test files to test/config directory. 2018-05-20 21:37:05 -07:00
David Anson
43a50c4cad Update to version 0.9.0. 2018-05-13 16:41:59 -07:00
David Anson
37e360eca1 Update dependencies: @types/node to 9.6.15, browserify to 16.2.2, eslint to 4.19.1, uglify-js to 3.3.25, remove incompatible @types/node. 2018-05-13 16:29:40 -07:00
David Anson
922bbefd55 Add tests for updated newline regular expression. 2018-04-30 21:43:34 -07:00
David Anson
3e1317709a Update MD009/no-trailing-spaces default configuration to allow 2 spaces for hard break (fixes #114). 2018-04-30 21:34:19 -07:00
David Anson
36dc946f46 Synchronize regular expression for line breaks with markdown-it (fixes #117). 2018-04-29 22:29:03 -07:00
David Anson
072da48add Relax MD041/first-line-h1 to allow blank links above the top level header (fixes #116). 2018-04-29 12:02:47 -07:00
David Anson
017fe127fa Fix issue where escaped trailing hash on header caused MD003 due to incorrect classification. 2018-04-28 14:49:31 -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
78c1af7bfd Add TypeScript to demo build script to output ES3-level code for browsers (fixes #84). 2018-04-26 22:21:23 -07:00
David Anson
85e6e7a183 Convert devDependencies from ^ to ~. 2018-04-25 21:14:20 -07:00
David Anson
18125a1872 Add new Node.js version 10, remove end-of-life versions 0.10, 0.12, 4. 2018-04-25 21:10:19 -07:00
David Anson
f4f4728e2c Merge branch 'levacic/header-to-heading' into next 2018-04-19 22:38:54 -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
e938f421a9 Update to version 0.8.1. 2018-03-20 20:45:45 -07:00
David Anson
09251447d1 Update dependencies: eslint to 4.19.0, uglify-js to 3.3.16. 2018-03-19 21:26:51 -07:00
David Anson
ff73e822cf Make item loop iterative (vs. recursive) to handle synchronous processing of thousands of items. 2018-03-19 21:21:22 -07:00
David Anson
f80b61d8b7 Allow empty string for detail/context in onError callback from rules. 2018-03-17 22:11:56 -07:00
Guillaume ARM
b3f0d76a67 Add a link to linter-node-markdownlint
linter-node-markdownlint extension for Atom
2018-03-16 17:55:06 -07:00
David Anson
5dcdb55952 Update to version 0.8.0. 2018-03-10 21:46:52 -08:00
David Anson
621400447d Update dependencies: markdown-it to 8.4.1, @types/node to 9.4.7, browserify to 16.1.1, eslint to 4.18.2, uglify-js to 3.3.13. 2018-03-09 22:58:54 -08:00
David Anson
c9571607dc Convert to code fences in Rules.md and tag all as "markdown". 2018-03-09 22:50:01 -08:00
David Anson
7310d01fea Add "engines" field to package.json. 2018-03-06 21:49:16 -08:00
David Anson
89e12b90e0 Support 1-3 spaces prefixing a code fence per specification (fixes #107). 2018-03-06 21:43:45 -08:00
David Anson
40ace5bb5e Fix MD007/ul-indent to use parent indent instead of previous indent (fixes #106). 2018-03-05 20:56:12 -08:00
David Anson
748c8cac17 Remove unnecessary params parameter to shared.flattenLists/forEachLine. 2018-03-04 23:06:31 -08:00
David Anson
942cc9af08 Use "markdown" for syntax highlighting on GitHub ("md" not recognized). 2018-03-03 22:22:02 -08:00
David Anson
08c8031736 Add documentation for authoring custom rules. 2018-03-03 22:15:49 -08:00
David Anson
b33acb81d9 Remove params.tokenLists to simplify custom rule API. 2018-03-01 22:37:37 -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
fda309df2f Refactor to simplify and generalize rule name handling. 2018-02-04 20:27:20 -08:00
David Anson
bc8776c582 Stop caching forEachLine/flattenLists results on params object. 2018-02-02 22:29:50 -08:00
David Anson
5adbf30628 Remove GitHub tag badge from README.md. 2018-01-31 21:35:33 -08:00
David Anson
056608a680 Improve code to determine unordered list style for MD004/ul-style (fixes #104). 2018-01-31 21:32:50 -08:00
David Anson
c0ea22e55e Update to version 0.7.0. 2018-01-22 20:54:26 -08:00
David Anson
6ca9340a30 Update dependencies: @types/node to 9.3.0, browserify to 15.2.0, eslint to 4.16.0, uglify-js to 3.3.8. 2018-01-22 20:29:06 -08:00
David Anson
9ba143555d Move each rule implementation into its own file (fixes #83). 2018-01-21 21:44:25 -08:00
David Anson
49e36f817c Remove abbreviations from rule metadata to clarify API. 2018-01-18 21:34:30 -08:00
David Anson
513a1351a5 Move code shared by rules into shared.js. 2018-01-18 21:27:07 -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
d47091078e Add links to Mocha project to Examples section of README. 2018-01-14 21:59:23 -08:00
David Anson
25b6e6f2f3 Move error reporting helpers out of core to simplify API for rule.func. 2018-01-14 21:53:35 -08:00
David Anson
6319cbba3e Remove deprecated io.js from .travis.yml. 2018-01-13 22:08:26 -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