mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-04 06:58:49 +01:00
Add ESLint plugin eslint-plugin-regexp, enable recommended rules, apply all automated fixes (refs #657).
This commit is contained in:
parent
c346e0dbac
commit
6b01a98363
15 changed files with 41 additions and 34 deletions
|
|
@ -568,7 +568,7 @@ test("customFrontMatter", (t) => new Promise((resolve) => {
|
|||
"strings": {
|
||||
"content": "<head>\n\t\n</head>\n# Heading\n"
|
||||
},
|
||||
"frontMatter": /<head>[^]*<\/head>/,
|
||||
"frontMatter": /<head>[\s\S]*<\/head>/,
|
||||
"config": {
|
||||
"default": false,
|
||||
"MD010": true
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const languageJavaScript = /js|javascript/i;
|
|||
function cleanJsdocRulesFromEslintConfig(config) {
|
||||
const cleanedConfig = { ...config };
|
||||
for (const rule in config.rules) {
|
||||
if (/^(es|jsdoc|n|unicorn)\//.test(rule)) {
|
||||
if (/^(es|jsdoc|n|regexp|unicorn)\//.test(rule)) {
|
||||
delete cleanedConfig.rules[rule];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue