Skip to content

Commit 6458690

Browse files
committed
Move common markdownlint config to top-level file
1 parent 56b36ba commit 6458690

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.markdownlint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"MD013": false,
3+
"MD041": false
4+
}

extensions/ql-vscode/.markdownlint-cli2.cjs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
const options = require('@github/markdownlint-github').init({
2-
"MD013": false, // Line length
3-
"MD041": false, // First line in file should be a top level heading
4-
})
1+
// Having the base options in a top-level config file means
2+
// that the extension can pick them up too, since that only
3+
// considers _this_ file when looking at files in this directory
4+
// or below.
5+
base_options = require('../../.markdownlint.json')
6+
7+
const options = require('@github/markdownlint-github').init(
8+
base_options
9+
)
510
module.exports = {
611
config: options,
712
customRules: ["@github/markdownlint-github"],

0 commit comments

Comments
 (0)