From 63faf5814355801057ceee7b6600669b059e4392 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Tue, 7 May 2024 16:31:41 -0700 Subject: [PATCH] feat: export all markdownlint rules --- bin/markdownlint-cli-wrapper.ts | 2 +- markdownlint-rules/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 markdownlint-rules/index.js diff --git a/bin/markdownlint-cli-wrapper.ts b/bin/markdownlint-cli-wrapper.ts index 7e710cf..e403528 100644 --- a/bin/markdownlint-cli-wrapper.ts +++ b/bin/markdownlint-cli-wrapper.ts @@ -9,7 +9,7 @@ if (require.main === module) { [ require.resolve('markdownlint-cli'), '-r', - path.resolve(__dirname, '../../markdownlint-rules'), + path.resolve(__dirname, '../../markdownlint-rules/index.js'), ...process.argv.slice(2), ], { stdio: 'inherit' }, diff --git a/markdownlint-rules/index.js b/markdownlint-rules/index.js new file mode 100644 index 0000000..79cb282 --- /dev/null +++ b/markdownlint-rules/index.js @@ -0,0 +1,4 @@ +const EMD002 = require('./emd002.js'); +const EMD003 = require('./emd003.js'); + +module.exports = [EMD002, EMD003];