Skip to content

Commit 951a520

Browse files
committed
Ensure github-markdownlint rules considered for all linting
1 parent 6458690 commit 951a520

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@
4343
"TZ": "UTC"
4444
},
4545

46+
// These custom rules are read in extensions/ql-vscode/.markdownlint-cli2.cjs
47+
// but markdownlint only considers that config when linting files in
48+
// extensions/ql-vscode/ or its subfolders. Therefore, we have to explicitly
49+
// load the custom rules here too.
50+
//
51+
// Configuration of the default rules is done in .markdownlint.json, which
52+
// is picked up by the extension automatically, and read explicitly in
53+
// .markdownlint-cli2.cjs
54+
"markdownlint.customRules": [
55+
"./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-default-alt-text.js",
56+
"./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-generic-link-text.js"
57+
],
58+
4659
// These options are used by the `jestrunner.debug` command.
4760
// They are not used by the `jestrunner.run` command.
4861
// After clicking "debug" over a test, continually invoke the

0 commit comments

Comments
 (0)