Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change no-invalid-regexp to warn for hasindices #1798

Merged
merged 2 commits into from
Apr 15, 2021
Merged

change no-invalid-regexp to warn for hasindices #1798

merged 2 commits into from
Apr 15, 2021

Conversation

escattone
Copy link
Contributor

@escattone escattone commented Apr 14, 2021

Changing the no-invalid-regexp rule to a warning (rather than a error), but only for **/regexp/regexp-prototype-hasindices.js. We can remove this change once eslint recognizes the "d" flag to the RegExp constructor.

This will get the builds passing again after they were broken by #1782.

@peterbe
Copy link
Contributor

peterbe commented Apr 14, 2021

What about upgrading to eslint 7.24.0 first?

@escattone
Copy link
Contributor Author

@peterbe

What about upgrading to eslint 7.24.0 first?

I tried that first, but it didn't help.

@escattone
Copy link
Contributor Author

@peterbe In fact, I'll add that upgrade to this PR, just to show that approach doesn't resolve the issue (the warning is still issued).

@peterbe
Copy link
Contributor

peterbe commented Apr 14, 2021

So even the latest version of eslint doesn't like this d flag.
https://travis-ci.com/github/mdn/interactive-examples/builds/222796771 from #1796
I'm guessing this new d flag is that something that's bleeding edge super-new that not even latest eslint can recognize it?

@schalkneethling schalkneethling merged commit da94394 into mdn:master Apr 15, 2021
@escattone escattone deleted the temp-disable-no-invalid-regexp-for-hasindices-example branch April 15, 2021 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants