Commit graph

68 commits

Author SHA1 Message Date
David Anson
2a19681b93 Update web demo page to use micromark renderer for converting Markdown to HTML by default, allow specifying markdown-it renderer instead. 2023-05-28 12:57:50 -07:00
David Anson
8595962251 Add and configure new JSDoc rules. 2023-04-21 21:01:40 -07:00
David Anson
b787758a48 Update to markdownlint-micromark@0.1.2, include gfmTable extension, change matchAndGetTokensByType return value, include .cjs files when linting. 2023-02-25 15:50:58 -08:00
David Anson
c15262a0f5 Switch to using npm version of markdownlint-micromark package and browser script. 2023-02-25 15:50:57 -08:00
David Anson
f8e793786a Update markdownlint-micromark to build scripts for web in addition to Node. 2023-02-25 15:50:57 -08:00
David Anson
fc2ed221ff Use .cjs extension for markdownlint-micromark output files for clarity. 2023-02-25 15:49:52 -08:00
David Anson
bb0aa012b5 Use webpack to create a CommonJS module from micromark's ESM implementation, convert to using that. 2023-02-25 15:49:52 -08:00
David Anson
ec1b2a364f Remove outdated references to markdownlint-rule-helpers-browser from ESLint and Git configuration. 2023-01-14 15:08:25 -08:00
David Anson
868edf889e Manually fix three new ESLint warnings from the eslint-plugin-regexp plugin (refs #657). 2022-12-19 21:51:18 -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
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
e09d7193a2 Customize new ESLint rule unicorn/switch-case-braces. 2022-10-05 09:06:17 -07:00
David Anson
eb05bac07d Disable new ESLint rule logical-assignment-operators from previous commit because "||=" syntax is not supported by Node 14. 2022-09-29 21:24:03 -07:00
David Anson
91856f0423 Update dependency: ava to 4.3.0. 2022-06-21 05:03:13 +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
7c1550cbe9 Remove RegExp lookbehind assertions used to fix "Polynomial regular expression used on uncontrolled data" because they are not supported in Safari, add eslint-plugin-es rule no-regexp-lookbehind-assertions to prevent regressions. 2022-02-13 16:57:09 -08:00
David Anson
3a62220e87 Add "plugin:unicorn/all" to "extends" to simplify .eslintrc.json. 2022-01-23 23:05:24 -08:00
David Anson
05b9e6e43c Update dependency: strip-json-comments to 4.0.0. 2021-12-27 21:59:56 +00:00
David Anson
528758e962 Update dependencies: eslint to 8.5.0, eslint-plugin-jsdoc to 37.4.0. 2021-12-27 04:37:51 +00:00
David Anson
1b23976aa2 Update dependencies: eslint-plugin-jsdoc to 37.2.8, eslint-plugin-unicorn to 39.0.0. 2021-12-19 04:04:53 +00:00
David Anson
13e375b281 Disable ESLint rule func-style. 2021-12-11 21:48:00 -08:00
David Anson
0550ba91d3 Move .eslintignore content into .eslintrc.json, sort by setting name. 2021-10-30 17:55:50 -07:00
David Anson
a8228ecd80 Update dependencies: c8 to 7.8.0, eslint to 7.32.0, eslint-plugin-jsdoc to 36.0.7, eslint-plugin-unicorn to 35.0.0, globby to 11.0.4, markdown-it-texmath to 0.9.1, ts-loader to 9.2.5, typescript to 4.3.5, webpack to 5.51.1, webpack-cli to 4.8.0. 2021-08-22 18:03:26 -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
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
c4e236b858 Update clearHtmlCommentText helper to match CommonMark (instead of HTML) specification (refs #361). 2021-01-30 13:08:57 -08:00
Nick Schonning
0c309c63c1
chore: Use ESLint overrides for config (#348) 2020-12-07 21:17:14 -08:00
David Anson
d2bd75748f Update dependencies: @types/node to 14.14.9, browserify to 17.0.0, c8 to 7.3.5, eslint to 7.14.0, eslint-plugin-jsdoc to 30.7.8, eslint-plugin-unicorn to 23.0.0, markdownlint-rule-helpers to 0.12.0, typescript to 4.1.2, uglify-js to 3.12.0. 2020-11-24 16:25:43 -08:00
David Anson
fb49877c86 Change ESLint ecmaVersion to 2019, remove unused catch binding. 2020-10-20 19:59:38 -07:00
David Anson
aafd0830a2 Enable reportUnusedDisableDirectives for ESLint, address new warning. 2020-10-20 19:56:16 -07:00
David Anson
5ab938a6ab Add lint rules from eslint-plugin-unicorn. 2020-09-06 20:34:10 -07:00
David Anson
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -07:00
David Anson
f5a71521d4 Update MD037/no-space-in-emphasis to ignore emphasis markers in code spans (fixes #278). 2020-04-25 15:10:07 -07:00
David Anson
74af9f82fb Enable jsdoc/require-jsdoc rule, fix all violations (fixes #85). 2020-01-23 19:42:46 -08:00
David Anson
e3c93ed65d Add eslint-plugin-jsdoc to lint script, address new violation. 2020-01-19 21:01:11 -08:00
David Anson
dc39509f25 Update dependencies: @types/node to 12.7.11, browserify to 16.5.0, eslint to 6.5.1, markdownlint-rule-helpers to 0.4.0, rimraf to 3.0.0, typescript to 3.6.3. 2019-10-03 20:56:46 -07:00
David Anson
e61e39dadf Update dependencies: @types/node to 12.6.9, browserify to 16.3.0, eslint to 6.1.0, markdownlint-rule-helpers to 0.3.0, typescript to 3.5.3. 2019-08-03 16:33:51 -07:00
David Anson
c3e8eab87b Update MD038/no-space-in-code to ignore backticks in link destinations (fixes #206). 2019-07-28 16:48:32 -07:00
David Anson
0f72bf054b Add options.handleRuleFailures for custom rule exceptions. 2019-05-18 12:32:52 -07:00
David Anson
1b8b15693f Replace assign/clone helpers with object spread syntax. 2019-05-05 22:27:01 -07:00
David Anson
ec35833751 Update dependencies: @types/node to 11.12.0, eslint to 5.15.3, js-yaml to 3.13.0, typescript to 3.3.4000, uglify-js to 3.5.2. 2019-03-30 14:36:04 -07:00
David Anson
550ef6a53d Update dependencies: @types/node to 10.12.21, browserify to 16.2.3, eslint to 5.12.1, glob to 7.1.3, js-yaml to 3.12.1, rimraf to 2.6.3, toml to 3.0.0, typescript to 3.3.1, uglify-js to 3.4.9. 2019-01-31 21:52:47 -08:00
David Anson
ff50da3b42 Re-implement MD038 to handle multi-line spans better and rely less on RegExp. 2019-01-30 22:09:20 -08:00
David Anson
8a175955d7 Add options.markdownItPlugins to support using markdown-it plugins when parsing. 2019-01-19 12:52:13 -08:00
David Anson
f0fce5b4b0 Update dependencies: markdown-it to 8.4.2, @types/node to 10.5.2, eslint to 5.2.0, js-yaml to 3.12.0, nodeunit to 0.11.3, typescript to 2.9.2, uglify-js to 3.4.5. 2018-07-21 21:41:24 -07:00
David Anson
c7f763a076 Enable ESLint rules prefer-rest-params, prefer-spread. 2018-05-25 17:40:36 -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
f24f98e146 Add support for using custom rules. 2018-02-15 21:35:58 -08:00