WebUI: add linting for regular expressions

And applies to following suggestions:
* Use case-insensitive flag `i`
* Use `\w` for matching characters
* Sort the regex flags
This commit is contained in:
Chocobo1
2024-04-30 01:10:00 +08:00
parent e2d6cd31b2
commit 6231208ddf
4 changed files with 7 additions and 3 deletions

View File

@@ -14,6 +14,7 @@
"@stylistic/eslint-plugin": "*",
"eslint": "*",
"eslint-plugin-html": "*",
"eslint-plugin-regexp": "*",
"html-validate": "*",
"i18next-parser": "*",
"js-beautify": "*",