Manually fix three new ESLint warnings from the eslint-plugin-regexp plugin (refs #657).

This commit is contained in:
David Anson 2022-12-19 21:51:18 -08:00
parent 6b01a98363
commit 868edf889e
9 changed files with 13 additions and 16 deletions

View file

@ -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|regexp|unicorn)\//.test(rule)) {
if (/^(?:es|jsdoc|n|regexp|unicorn)\//.test(rule)) {
delete cleanedConfig.rules[rule];
}
}