Move common markdownlint config to top-level file

This commit is contained in:
Sam Partington
2023-04-05 12:10:40 +01:00
parent 56b36baa82
commit 6458690d9f
2 changed files with 13 additions and 4 deletions

4
.markdownlint.json Normal file
View File

@@ -0,0 +1,4 @@
{
"MD013": false,
"MD041": false
}

View File

@@ -1,7 +1,12 @@
const options = require('@github/markdownlint-github').init({ // Having the base options in a top-level config file means
"MD013": false, // Line length // that the extension can pick them up too, since that only
"MD041": false, // First line in file should be a top level heading // considers _this_ file when looking at files in this directory
}) // or below.
base_options = require('../../.markdownlint.json')
const options = require('@github/markdownlint-github').init(
base_options
)
module.exports = { module.exports = {
config: options, config: options,
customRules: ["@github/markdownlint-github"], customRules: ["@github/markdownlint-github"],