You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... your plugin will falsely warn Unexpected unnecessary non-capturing group. This group can be removed without changing the behaviour of the regex but it's required because the patterns defined earlier are:
... so without the grouping (capturing or not) the pipe will compare differently if pre-defined entire patterns weren't wholly grouped already (as in above examples)
I think probably other rules will false positive too since it looks like your plugin doesn't construct new RegExp() before linting to gather the context required for determining truly useless things
The text was updated successfully, but these errors were encountered:
adamlui
added a commit
to adamlui/ai-web-extensions
that referenced
this issue
Dec 17, 2024
Information:
eslint-plugin-regexp
version: 2.7.0Description
Here https://github.com/adamlui/ai-web-extensions/blob/2e1cc309a53bf59fec003f9290a1a49745be1e6e/utils/bump/js-resources.js#L104:
... your plugin will falsely warn
Unexpected unnecessary non-capturing group. This group can be removed without changing the behaviour of the regex
but it's required because the patterns defined earlier are:... so without the grouping (capturing or not) the pipe will compare differently if pre-defined entire patterns weren't wholly grouped already (as in above examples)
I think probably other rules will false positive too since it looks like your plugin doesn't construct
new RegExp()
before linting to gather the context required for determining truly useless thingsThe text was updated successfully, but these errors were encountered: