Skip to content

Commit b2f817d

Browse files
committed
Ensure vscode extension considers github-markdownlint config
1 parent e85cba8 commit b2f817d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.vscode/settings.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,21 @@
4747
// but markdownlint only considers that config when linting files in
4848
// extensions/ql-vscode/ or its subfolders. Therefore, we have to explicitly
4949
// 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
5450
"markdownlint.customRules": [
5551
"./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-default-alt-text.js",
5652
"./extensions/ql-vscode/node_modules/@github/markdownlint-github/src/rules/no-generic-link-text.js"
5753
],
5854

55+
// This ensures that the rule enablement done by github-markdownlint is considered
56+
// by the extension too.
57+
//
58+
// Additional nonfiguration of the default rules is done in .markdownlint.json,
59+
// which is picked up by the extension automatically, and read explicitly in
60+
// .markdownlint-cli2.cjs
61+
"markdownlint.config": {
62+
"extends": "./extensions/ql-vscode/node_modules/@github/markdownlint-github/style/accessibility.json"
63+
},
64+
5965
// These options are used by the `jestrunner.debug` command.
6066
// They are not used by the `jestrunner.run` command.
6167
// After clicking "debug" over a test, continually invoke the

0 commit comments

Comments
 (0)