lib: add RegExp primordials
Hello, For this PR I have added RegExp in the primordials eslint And i just have created a line in "/lib/.eslintrc.yaml".
rules:
no-restricted-globals:
- name: RegExp
message: "Use `const { RegExp } = primordials;` instead of the global."
And just add RegExp.
const {
// [...]
RegExp,
} = primordials;
I hope this new PR will help you :x