mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-04 21:37:23 +02:00
Merge pull request #21710 from calixteman/eslint-regexp-rules
Enable a few more `eslint-plugin-regexp` rules
This commit is contained in:
commit
5ca8134cc1
@ -62,7 +62,13 @@ export default [
|
|||||||
rules: {
|
rules: {
|
||||||
...regexpPlugin.configs["flat/recommended"].rules,
|
...regexpPlugin.configs["flat/recommended"].rules,
|
||||||
"regexp/no-legacy-features": "off",
|
"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/no-super-linear-move": "error",
|
||||||
|
"regexp/optimal-lookaround-quantifier": "error",
|
||||||
|
"regexp/prefer-escape-replacement-dollar-char": "error",
|
||||||
|
"regexp/prefer-regexp-exec": "error",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user