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

Flag d should not be considered valid in ES2021 #208

Closed
fasttime opened this issue Oct 27, 2024 · 1 comment · Fixed by #209
Closed

Flag d should not be considered valid in ES2021 #208

fasttime opened this issue Oct 27, 2024 · 1 comment · Fixed by #209
Labels

Comments

@fasttime
Copy link

Regexp flag d was introduced in ES2022. It should not be considered valid with ecmaVersion: 2021, i.e.:

import { RegExpValidator } from "@eslint-community/regexpp";
const validator = new RegExpValidator({ ecmaVersion: 2021 });
validator.validateFlags("d");

The above code should throw an error. It did so with version 4.11.2, but in version 4.12.0, no error is thrown.

Copy link

🎉 This issue has been resolved in version 4.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant