mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Manually fix three new ESLint warnings from the eslint-plugin-regexp plugin (refs #657).
This commit is contained in:
parent
6b01a98363
commit
868edf889e
9 changed files with 13 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ const configSchema = require("./markdownlint-config-schema.json");
|
|||
|
||||
const configExample = {};
|
||||
for (const rule in configSchema.properties) {
|
||||
if (/^(MD\d{3}|default|extends)$/.test(rule)) {
|
||||
if (/^(?:MD\d{3}|default|extends)$/.test(rule)) {
|
||||
const properties = configSchema.properties[rule];
|
||||
configExample[rule + "-description"] = properties.description;
|
||||
configExample[rule] = properties.default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue