Merge pull request #21710 from calixteman/eslint-regexp-rules

Enable a few more `eslint-plugin-regexp` rules
This commit is contained in:
calixteman 2026-08-04 21:05:05 +02:00 committed by GitHub
commit 5ca8134cc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,13 @@ export default [
rules: {
...regexpPlugin.configs["flat/recommended"].rules,
"regexp/no-legacy-features": "off",
"regexp/no-octal": "error",
"regexp/no-potentially-useless-backreference": "error",
"regexp/no-standalone-backslash": "error",
"regexp/no-super-linear-move": "error",
"regexp/optimal-lookaround-quantifier": "error",
"regexp/prefer-escape-replacement-dollar-char": "error",
"regexp/prefer-regexp-exec": "error",
},
},
{