Move common markdownlint config to top-level file
This commit is contained in:
4
.markdownlint.json
Normal file
4
.markdownlint.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"MD013": false,
|
||||||
|
"MD041": false
|
||||||
|
}
|
||||||
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user