amilajack / amilajack/eslint-plugin-compat

Use of RegExp.escape() not flagged with browserlist-config-wikimedia's ~last-3-years config

未关闭
#668 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
3.2k
派生
115
PR 合并指标
30 天内没有已合并 PR

描述

For MediaWiki and extensions we're using a browserlist for driving eslint-plugin-compat from browserlist-config-wikimedia, which for full compat mode lists:

```
[
"Chrome > 0, Edge > 0, Firefox > 0 and last 3 years",
"Safari >= 11.1",
"iOS >= 11.3",
"Android >= 5"
]
```

This should absolutely reject `Regexp.escape()` which is brand new in 2025:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape

however it does not. It's passed through as ok, and ends up on old browsers as calling null.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。