diff options
author | 2024-08-07 16:01:23 +0800 | |
---|---|---|
committer | 2024-08-07 16:01:23 +0800 | |
commit | ea82b03cd6d40c6bd541046f2f9aedfed058ff4f (patch) | |
tree | 620fbe169215cba926d7f6376a8b75cb7c12c8e3 /eslint.config.js | |
parent | 74a093056df99b2714ecc30fc2c36e88778dd9ce (diff) | |
download | astro-ea82b03cd6d40c6bd541046f2f9aedfed058ff4f.tar.gz astro-ea82b03cd6d40c6bd541046f2f9aedfed058ff4f.tar.zst astro-ea82b03cd6d40c6bd541046f2f9aedfed058ff4f.zip |
Improve regex performance (#11635)
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js index ab7efa3df..f12bf49d1 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -111,6 +111,8 @@ export default [ // In some cases, using explicit letter-casing is more performant than the `i` flag 'regexp/use-ignore-case': 'off', + 'regexp/prefer-regexp-exec': 'warn', + 'regexp/prefer-regexp-test': 'warn', }, }, |