Closed
Description
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.