From 951a520bdb99497ffe08b4ab5fa77f4cfe631122 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Wed, 5 Apr 2023 12:24:09 +0100 Subject: [PATCH] Ensure github-markdownlint rules considered for all linting --- .vscode/settings.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6bc3c9dde..a9de46be3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,6 +43,19 @@ "TZ": "UTC" }, + // These custom rules are read in extensions/ql-vscode/.markdownlint-cli2.cjs + // but markdownlint only considers that config when linting files in + // extensions/ql-vscode/ or its subfolders. Therefore, we have to explicitly + // load the custom rules here too. + // + // Configuration of the default rules is done in .markdownlint.json, which + // is picked up by the extension automatically, and read explicitly in + // .markdownlint-cli2.cjs + "markdownlint.customRules": [ + "./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-default-alt-text.js", + "./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-generic-link-text.js" + ], + // These options are used by the `jestrunner.debug` command. // They are not used by the `jestrunner.run` command. // After clicking "debug" over a test, continually invoke the